闭社主体 forked from https://github.com/tootsuite/mastodon
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.

43 lines
841 B

8 years ago
  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. - NEO4J_HOST=localhost
  13. - NEO4J_PORT=7575
  14. addons:
  15. postgresql: 9.4
  16. rvm:
  17. - 2.2.4
  18. services:
  19. - redis-server
  20. bundler_args: --without development production --retry=3 --jobs=3
  21. install:
  22. - rm -rf ~/.nvm && git clone https://github.com/creationix/nvm.git ~/.nvm && (cd ~/.nvm && git checkout `git describe --abbrev=0 --tags --match "v[0-9]*" origin`)
  23. - nvm alias default v0.10.36
  24. - source ~/.nvm/nvm.sh
  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