.travis.yml 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. language: node_js
  2. node_js:
  3. - "8"
  4. git:
  5. depth: 1
  6. addons:
  7. apt:
  8. sources:
  9. - ubuntu-toolchain-r-test
  10. packages:
  11. - g++-4.9
  12. postgresql: "9.4"
  13. cache: yarn
  14. sudo: false
  15. services:
  16. - postgresql
  17. - redis-server
  18. install:
  19. - CC=gcc-4.9 CXX=g++-4.9 yarn install
  20. before_script:
  21. - wget --no-check-certificate "https://download.cpy.re/ffmpeg/ffmpeg-release-4.0.2-64bit-static.tar.xz"
  22. - tar xf ffmpeg-release-4.0.2-64bit-static.tar.xz
  23. - mkdir -p $HOME/bin
  24. - cp ffmpeg-*/{ffmpeg,ffprobe} $HOME/bin
  25. - export PATH=$HOME/bin:$PATH
  26. - psql -c "create user peertube with password 'peertube';" -U postgres
  27. matrix:
  28. include:
  29. - env: TEST_SUITE=misc
  30. - env: TEST_SUITE=api-1
  31. - env: TEST_SUITE=api-2
  32. - env: TEST_SUITE=api-3
  33. - env: TEST_SUITE=cli
  34. - env: TEST_SUITE=lint
  35. - env: TEST_SUITE=jest
  36. script:
  37. - travis_retry npm run travis -- "$TEST_SUITE"
  38. after_failure:
  39. - cat test1/logs/all-logs.log
  40. - cat test2/logs/all-logs.log
  41. - cat test3/logs/all-logs.log
  42. - cat test4/logs/all-logs.log
  43. - cat test5/logs/all-logs.log
  44. - cat test6/logs/all-logs.log