.travis.yml
sudo: required
dist: xenial
language: ruby
rvm:
- 2.4.1
- 2.7.1
before_install: gem install bundler -v 2.0.1
env:
global:
- CC_TEST_REPORTER_ID=e82aca58fe4e7eae020799b830f8df7dd35ec67f7476078d4fe97ae884be8f84
addons:
chrome: stable
before_script:
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter && ./cc-test-reporter before-build
- # start your web application and listen on `localhost`
- google-chrome-stable --headless --disable-gpu --remote-debugging-port=9222 http://localhost &
script: COVERAGE=1 xvfb-run bundle exec rspec
after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT