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.

61 lines
1.3 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. notifications:
  13. email: false
  14. env:
  15. global:
  16. - LOCAL_DOMAIN=cb6e6126.ngrok.io
  17. - LOCAL_HTTPS=true
  18. - RAILS_ENV=test
  19. - PARALLEL_TEST_PROCESSORS=2
  20. - ALLOW_NOPAM=true
  21. addons:
  22. postgresql: 9.4
  23. apt:
  24. sources:
  25. - trusty-media
  26. - sourceline: deb https://dl.yarnpkg.com/debian/ stable main
  27. key_url: https://dl.yarnpkg.com/debian/pubkey.gpg
  28. packages:
  29. - ffmpeg
  30. - libicu-dev
  31. - libprotobuf-dev
  32. - protobuf-compiler
  33. - yarn
  34. rvm:
  35. - 2.4.3
  36. - 2.5.1
  37. services:
  38. - redis-server
  39. install:
  40. - nvm install
  41. - bundle install --path=vendor/bundle --with pam_authentication --without development production --retry=3 --jobs=16
  42. - yarn install
  43. # https://github.com/travis-ci/travis-ci/issues/9333
  44. before_install:
  45. - gem install bundler
  46. before_script:
  47. - travis_wait ./bin/rails parallel:create parallel:load_schema parallel:prepare assets:precompile
  48. - yarn install --no-progress
  49. script:
  50. - travis_retry bundle exec parallel_test spec/ --group-by filesize --type rspec
  51. - yarn run test:jest
  52. - bundle exec i18n-tasks check-normalized && bundle exec i18n-tasks unused