-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
48 lines (48 loc) · 2.33 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
language: bash
services:
- docker
env:
global:
- CC_TEST_REPORTER_ID=2c0e6ce9e61357e6f15cf76a915b3868235d93e0b849218220242e456bfaa2aa
matrix:
- ANSIBLE_VERSION=2.8.10
- ANSIBLE_VERSION=2.7.16
- ANSIBLE_VERSION=2.6.20
- 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
script:
- >
RUBY=2.7.0 && docker run --rm -e TRAVIS -e TRAVIS_JOB_ID -e TRAVIS_BRANCH -e TRAVIS_PULL_REQUEST
-e CC_TEST_REPORTER_ID -it -v $PWD:/app pgeraghty/ansible-ruby:$RUBY-$ANSIBLE_VERSION /bin/sh -c
"cd /app && bundle install --jobs=3 --retry=3 &&
./cc-test-reporter before-build &&
CI=true bundle exec rake && rm Gemfile.lock"
- >
RUBY=2.6.5 && docker run --rm -it -v $PWD:/app pgeraghty/ansible-ruby:$RUBY-$ANSIBLE_VERSION
/bin/sh -c "cp -r /app /tmp/app && cd /tmp/app && bundle install --jobs=3 --retry=3 && bundle exec rake"
- >
RUBY=2.5.7 && 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"
- >
RUBY=2.4.9 && 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"
- >
RUBY=2.3.7 && 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"
- >
RUBY=2.2.7 && 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"
- >
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:
- RUBY=2.6.4 && docker run --rm -e TRAVIS -e TRAVIS_JOB_ID -e TRAVIS_BRANCH -e TRAVIS_PULL_REQUEST
-e TRAVIS_TEST_RESULT -e CC_TEST_REPORTER_ID -it -v $PWD:/app pgeraghty/ansible-ruby:$RUBY-$ANSIBLE_VERSION
/bin/sh -c "cd /app && ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT"