.travis.yml in pact_broker-2.1.1 vs .travis.yml in pact_broker-2.2.0
- old
+ new
@@ -7,14 +7,22 @@
- postgresql
- mysql
addons:
postgresql: "9.5"
env:
- - DATABASE_ADAPTER=default RUBYOPT="-W0"
- - DATABASE_ADAPTER=postgres RUBYOPT="-W0"
- - DATABASE_ADAPTER=mysql RUBYOPT="-W0"
+ global:
+ - CC_TEST_REPORTER_ID=dc2c30b67c9e2a5309e1aef699c30fdab55ba4f0e4f1beac029ba93e293835db
+ - GIT_COMMITTED_AT=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then git log -1 --pretty=format:%ct; else git log -1 --skip 1 --pretty=format:%ct; fi)
+ matrix:
+ - DATABASE_ADAPTER=default RUBYOPT="-W0"
+ - DATABASE_ADAPTER=postgres RUBYOPT="-W0"
+ - DATABASE_ADAPTER=mysql RUBYOPT="-W0"
before_script:
- cp config/database.travis.yml config/database.yml
- psql -U postgres -c "CREATE DATABASE pact_broker;"
- mysql -e 'CREATE DATABASE pact_broker;'
+ - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
+ - chmod +x ./cc-test-reporter
script:
- bundle exec rake
+ - if [ "$DATABASE_ADAPTER" == "postgres" ]; then ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT; fi
+ - bundle exec bundle-audit update && bundle exec bundle-audit