You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
1.2 KiB

  1. language: ruby
  2. cache:
  3. bundler: true
  4. yarn: true
  5. directories:
  6. - node_modules
  7. - public/assets
  8. - public/packs-test
  9. - tmp/cache/babel-loader
  10. dist: trusty
  11. sudo: false
  12. branches:
  13. only:
  14. - master
  15. notifications:
  16. email: false
  17. env:
  18. global:
  19. - LOCAL_DOMAIN=cb6e6126.ngrok.io
  20. - LOCAL_HTTPS=true
  21. - RAILS_ENV=test
  22. - NOKOGIRI_USE_SYSTEM_LIBRARIES=true
  23. - PARALLEL_TEST_PROCESSORS=2
  24. addons:
  25. postgresql: 9.4
  26. apt:
  27. sources:
  28. - trusty-media
  29. - sourceline: deb https://dl.yarnpkg.com/debian/ stable main
  30. key_url: https://dl.yarnpkg.com/debian/pubkey.gpg
  31. packages:
  32. - ffmpeg
  33. - libicu-dev
  34. - libprotobuf-dev
  35. - protobuf-compiler
  36. - yarn
  37. rvm:
  38. - 2.4.2
  39. - 2.5.0
  40. services:
  41. - redis-server
  42. install:
  43. - nvm install
  44. - bundle install --path=vendor/bundle --without development production --retry=3 --jobs=16
  45. - yarn install
  46. before_script:
  47. - ./bin/rails parallel:create parallel:load_schema parallel:prepare assets:precompile
  48. script:
  49. - travis_retry bundle exec parallel_test spec/ --group-by filesize --type rspec
  50. - yarn run test:jest
  51. - bundle exec i18n-tasks check-normalized && bundle exec i18n-tasks unused