Skip to content

Commit

Permalink
Add Code Climate coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
pgeraghty committed Sep 30, 2019
1 parent 8fb3004 commit 8dc76c3
Showing 1 changed file with 18 additions and 9 deletions.
27 changes: 18 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,22 @@ language: bash
services:
- docker
env:
- ANSIBLE_VERSION=2.8.5
- ANSIBLE_VERSION=2.7.12
- ANSIBLE_VERSION=2.6.19
- ANSIBLE_VERSION=2.5.15
- ANSIBLE_VERSION=2.4.6
- ANSIBLE_VERSION=2.3.3
- ANSIBLE_VERSION=2.2.3
- ANSIBLE_VERSION=2.1.6
- ANSIBLE_VERSION=2.0.2
global:
- CC_TEST_REPORTER_ID=2c0e6ce9e61357e6f15cf76a915b3868235d93e0b849218220242e456bfaa2aa
matrix:
- ANSIBLE_VERSION=2.8.5
- ANSIBLE_VERSION=2.7.12
- ANSIBLE_VERSION=2.6.19
- ANSIBLE_VERSION=2.5.15
- ANSIBLE_VERSION=2.4.6
- ANSIBLE_VERSION=2.3.3
- ANSIBLE_VERSION=2.2.3
- ANSIBLE_VERSION=2.1.6
- ANSIBLE_VERSION=2.0.2
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
script:
- >
RUBY=2.6.4 && docker run --rm -e TRAVIS -e TRAVIS_JOB_ID -e TRAVIS_BRANCH -e TRAVIS_PULL_REQUEST -it
Expand All @@ -31,3 +38,5 @@ script:
- >
RUBY=2.1.10 && docker run --rm -it -v $PWD:/app pgeraghty/ansible-ruby:$RUBY-$ANSIBLE_VERSION
/bin/sh -c "cd /app && bundle install --jobs=3 --retry=3 && bundle exec rake"
after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT

0 comments on commit 8dc76c3

Please sign in to comment.