.travis.yml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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:
  14. directories:
  15. - $HOME/.cache/yarn
  16. - $HOME/fixtures
  17. sudo: false
  18. services:
  19. - postgresql
  20. - redis-server
  21. install:
  22. - CC=gcc-4.9 CXX=g++-4.9 yarn install
  23. before_script:
  24. - wget --no-check-certificate "https://download.cpy.re/ffmpeg/ffmpeg-release-4.0.2-64bit-static.tar.xz"
  25. - tar xf ffmpeg-release-4.0.2-64bit-static.tar.xz
  26. - mkdir -p $HOME/bin
  27. - cp ffmpeg-*/{ffmpeg,ffprobe} $HOME/bin
  28. - export PATH=$HOME/bin:$PATH
  29. - psql -c "create user peertube with password 'peertube';" -U postgres
  30. matrix:
  31. include:
  32. - env: TEST_SUITE=misc
  33. - env: TEST_SUITE=api-1
  34. - env: TEST_SUITE=api-2
  35. - env: TEST_SUITE=api-3
  36. - env: TEST_SUITE=api-4
  37. - env: TEST_SUITE=cli
  38. - env: TEST_SUITE=lint
  39. - env: TEST_SUITE=jest
  40. script:
  41. - travis_retry npm run travis -- "$TEST_SUITE"
  42. after_failure:
  43. - cat test1/logs/all-logs.log
  44. - cat test2/logs/all-logs.log
  45. - cat test3/logs/all-logs.log
  46. - cat test4/logs/all-logs.log
  47. - cat test5/logs/all-logs.log
  48. - cat test6/logs/all-logs.log