.travis.yml 1.4 KB

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