.travis.yml 728 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. language: ruby
  2. cache: bundler
  3. notifications:
  4. email: false
  5. env:
  6. matrix:
  7. - TRAVIS_NODE_VERSION="4"
  8. global:
  9. - LOCAL_DOMAIN=cb6e6126.ngrok.io
  10. - LOCAL_HTTPS=true
  11. - RAILS_ENV=test
  12. - CXX=g++-4.8
  13. addons:
  14. postgresql: 9.4
  15. rvm:
  16. - 2.4.1
  17. services:
  18. - redis-server
  19. bundler_args: --without development production --retry=3 --jobs=3
  20. before_install:
  21. - sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
  22. - sudo apt-get -qq update
  23. - sudo apt-get -qq install g++-4.8
  24. install:
  25. - nvm install $TRAVIS_NODE_VERSION
  26. - npm install -g npm@3
  27. - npm install -g yarn
  28. - bundle install
  29. - yarn install
  30. before_script:
  31. - bundle exec rails db:create db:migrate
  32. script:
  33. - bundle exec rspec
  34. - npm test