-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
40 lines (35 loc) · 990 Bytes
/
.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
before_install:
- gem update bundler
before_script:
- |
bash -c "
if [ ! -z "$CC_TEST_REPORTER_ID" ]; then
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
fi
"
script:
- "bundle exec ruby test/test.rb"
- "bundle exec rubocop"
after_script:
- |
bash -c "
if [ ! -z "$CC_TEST_REPORTER_ID" ]; then
./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
fi
"
matrix:
include:
- rvm: "ruby-head"
# Disable Ruby 1.9.*, which is not directly supported by ruby_parser 3.13.*.
# See: https://github.com/seattlerb/ruby_parser/blob/master/History.rdoc
# - rvm: "1.9.3"
- rvm: "2.3.5"
- rvm: "2.4.2"
- rvm: "2.5.1"
env: CC_TEST_REPORTER_ID=521d341f3320acda1902d0db0a3a92fb16b11ebfe3d5ab730218d4fc0fb3db13
branches:
only:
- master
sudo: false