.travis.yml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. language: ruby
  2. cache:
  3. bundler: true
  4. yarn: true
  5. directories:
  6. - node_modules
  7. - public/assets
  8. - public/packs
  9. dist: trusty
  10. sudo: false
  11. notifications:
  12. email: false
  13. env:
  14. global:
  15. - LOCAL_DOMAIN=cb6e6126.ngrok.io
  16. - LOCAL_HTTPS=true
  17. - RAILS_ENV=test
  18. - NOKOGIRI_USE_SYSTEM_LIBRARIES=true
  19. - PARALLEL_TEST_PROCESSORS=2
  20. - "PATH=$HOME:$PATH"
  21. addons:
  22. postgresql: 9.4
  23. apt:
  24. sources:
  25. - ubuntu-toolchain-r-test
  26. - trusty-media
  27. packages:
  28. - ffmpeg
  29. - g++-6
  30. - libprotobuf-dev
  31. - protobuf-compiler
  32. rvm:
  33. - 2.3.4
  34. - 2.4.1
  35. services:
  36. - redis-server
  37. install:
  38. - nvm install
  39. - npm install -g yarn
  40. - bundle install --path=vendor/bundle --without development production --retry=3 --jobs=16
  41. - yarn install
  42. before_script:
  43. - bundle exec rake parallel:create parallel:load_schema parallel:prepare
  44. - bundle exec rails assets:precompile
  45. - ln -s /usr/bin/x86_64-linux-gnu-g++-6 "$HOME/g++"
  46. script:
  47. - travis_retry bundle exec parallel_test spec/ --group-by filesize --type rspec
  48. - npm test
  49. - bundle exec i18n-tasks unused