docbrown/.travis.yml
Andy Zhao 183976fde0 Unmute cache silencer temporarily (#324)
* Unmute cache silencer temporarily

* Update .travis.yml
2018-08-14 12:29:35 -04:00

53 lines
2 KiB
YAML

sudo: required
language: ruby
cache:
directories:
- vendor/bundle
- node_modules
rvm:
- 2.5.1
addons:
postgresql: '9.6'
chrome: stable
env:
global:
- RAILS_ENV=test
- CC_TEST_REPORTER_ID=f39e060a8b1a558ebd8aff75d5b9760bf1ae98f3f85d628ae28814f3c66438cd
branches:
only:
- master
install:
- bundle install --path vendor/bundle
- bundle exec chromedriver-update
- yarn install
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64
> ./cc-test-reporter
- chmod +x ./cc-test-reporter
before_script:
- cp config/database.yml.travis config/database.yml
- psql -c 'create database travis_ci_test;' -U postgres
script:
- bundle exec rails webpacker:compile
- bundle exec rake db:schema:load
- "./cc-test-reporter before-build"
- bundle exec rspec spec
- "./cc-test-reporter format-coverage -t simplecov -o coverage/codeclimate.simplecov.json"
- yarn test
- "./cc-test-reporter format-coverage -t lcov -o coverage/codeclimate.lcov.json"
- "./cc-test-reporter sum-coverage coverage/codeclimate.*.json"
- "./cc-test-reporter upload-coverage"
- bundle exec bundle-audit update && bundle exec bundle-audit check
deploy:
provider: heroku
api_key: "$HEROKU_AUTH_TOKEN"
app:
master: practicaldev
run:
- rake db:migrate
after_deploy:
- bash after_deploy.sh
notifications:
slack:
on_pull_requests: false
on_success: always
secure: WzJFZxMyylShlK4p8hfWl1yrsTPTikiLjjNz+8TtV3jeNsUe4e8ytjYwojRL8ViRUrbfCFetnRlI/gsIGbgAPzjLkmlTWGdErNSt0TlIRDg9xuqagOmcQqBSqt7XBRn3pLSWaTDxvs29LAF+EZndFcAur+SMNbW1NvDM4ctLtTDrvyaGP+FMFaOREQebIY9ilDtD+1ZjoUtLObOEg16gRAfeA9kWoCl4JJPl0jAbxb58jrpNxusK3dt0kEY19hbmQjfhclAMIKDtz1O8JEQt5O7+GtLhwnOH73nE9Tn7EwjA2qHg287qtFY5wQpWlaTu3OkJD5GK2Woj9XaFcAoLZFz1F0SPqs0NoLV1ItwAPk7pZr/8cYPp/55P+P0ATv7VGr94CSsCAa0BQpztVSDNHv6A0iIETr1VMlDtkxY/Nddo6Fddmn7KBMbunoHDJ2a7y0Dj4gNxU2xOd44VZLZcJ2UWP/eh1ESTNxwj4snFDR30R/dnJyEwFXIzEtkuwCeCvKtGNPWIU+gn1UdbZ2sI28jqkuqiXEHmWY+IbZqIxHCxxiwtpQ4h5af6xysmkNqD78vBU/lqWDMkO10J4itoNgm5RxVb1CZx97MEd9i5frNmw+86acuT77olRv3/XVLoad58awUGQYgF1SxSQjDSndGbeLfCm5GwVsIae2aUYpY=