.travis.yml 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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.6"
  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.3-64bit-static.tar.xz"
  25. - tar xf ffmpeg-release-4.0.3-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. script:
  40. - NODE_PENDING_JOB_WAIT=2000 travis_retry npm run travis -- "$TEST_SUITE"
  41. after_failure:
  42. - cat test1/logs/peertube.log
  43. - cat test2/logs/peertube.log
  44. - cat test3/logs/peertube.log
  45. - cat test4/logs/peertube.log
  46. - cat test5/logs/peertube.log
  47. - cat test6/logs/peertube.log