sudo: false language: ruby rvm: - 2.4.2 before_install: gem install bundler -v 1.15.4 env: global: - CC_TEST_REPORTER_ID=61d42f990728bb450857fbd8b1f09d650f929f086d0d2d7d0c13ead9d33b77e2 before_script: - echo $(env) - 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 after_script: - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT after_success: - if [ $TRAVIS_EVENT_TYPE == "cron" ]; then gem install meroku; fi - if [ $TRAVIS_EVENT_TYPE == "cron" ]; then meroku --backup $SECRET; fi - if [ $TRAVIS_EVENT_TYPE == "cron" ]; then meroku --despawn $SECRET; fi - if [ $TRAVIS_EVENT_TYPE == "cron" ]; then meroku --spawn $SECRET; fi