metamaps--metamaps/.travis.yml

22 lines
514 B
YAML
Raw Normal View History

sudo: false
language: ruby
2016-04-26 02:22:32 +00:00
cache:
bundler: true
directories:
- app/assets/javascripts/node_modules
rvm:
- 2.1.3
before_script:
2016-04-26 02:22:32 +00:00
- echo "Rspec setup"
- export RAILS_ENV=test
- cp .example-env .env
- bundle exec rake db:create
- bundle exec rake db:schema:load
2016-04-26 02:22:32 +00:00
- echo "node setup"
- . $HOME/.nvm/nvm.sh
- nvm install stable
- nvm use stable
- (cd app/assets/javascripts && npm install)
script:
- bundle exec rspec && (cd app/assets/javascripts && npm test) && bundle exec brakeman -q -z