.travis.yml in meroku-2.0.27 vs .travis.yml in meroku-2.0.28

- old
+ new

@@ -5,14 +5,20 @@ before_install: gem install bundler -v 1.15.4 env: global: - CC_TEST_REPORTER_ID=61d42f990728bb450857fbd8b1f09d650f929f086d0d2d7d0c13ead9d33b77e2 - - COVERAGE_PATH="coverage/" 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