summaryrefslogtreecommitdiff
path: root/.travis.yml
blob: 6c607d27beb1a5e986956c421ede2a11bc0f96b8 (plain)
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
env:
  global:
    - "JRUBY_OPTS=-Xcext.enabled=true"
    - "CC_TEST_REPORTER_ID=faa393209ff0a104cf37511a9a03510bcee37951971b1ca4ffc2af217851d47e"
language: ruby
os: linux
rvm:
  - 1.8.7
  - ree
  - 1.9.3
  - 2.0
  - 2.1
  - 2.2
  - 2.3
  - 2.4
  - 2.5
  - 2.6
  - 2.7
  - 3.0
  - 3.1
  - 3.2
  - ruby-head
  - jruby
jobs:
  allow_failures:
    - rvm: 1.8.7
    - rvm: ree
    - rvm: ruby-head
    - rvm: jruby
branches:
  only:
    - master
before_script:
  - if (ruby -e "exit RUBY_VERSION.to_f >= 2.3"); then export RUBYOPT="--enable-frozen-string-literal"; fi; echo $RUBYOPT
  - 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: "rake test" # test:scanners"
after_script:
  - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT