2016-03-13 03:40:56 +00:00
|
|
|
sudo: false
|
|
|
|
language: ruby
|
2016-04-26 02:22:32 +00:00
|
|
|
cache:
|
|
|
|
bundler: true
|
|
|
|
directories:
|
|
|
|
- app/assets/javascripts/node_modules
|
2016-03-13 03:40:56 +00:00
|
|
|
rvm:
|
2016-08-01 00:33:45 +00:00
|
|
|
- 2.3.0
|
2016-03-13 03:40:56 +00:00
|
|
|
before_script:
|
2016-04-26 02:22:32 +00:00
|
|
|
- echo "Rspec setup"
|
2016-03-13 03:40:56 +00:00
|
|
|
- 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
|
2016-10-04 08:21:09 +00:00
|
|
|
- npm install --no-optional
|
2016-04-26 02:22:32 +00:00
|
|
|
script:
|
2016-09-23 04:00:47 +00:00
|
|
|
- bundle exec rspec && bundle exec brakeman -q -z && npm test
|
2016-09-23 10:43:54 +00:00
|
|
|
addons:
|
|
|
|
code_climate:
|
|
|
|
repo_token: 479d3bf56798fbc7fff3fc8151a5ed09e8ac368fd5af332c437b9e07dbebb44e
|
2016-12-16 21:56:58 +00:00
|
|
|
postgresql: "9.4"
|