mirror of
https://github.com/varvet/pundit.git
synced 2022-11-09 12:30:11 -05:00
8ffa4fe866
Coverage gets generated on every build, but we only need to send it for one build. Send it on the first one, otherwise we get eg: ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT time="2019-08-22T12:37:01Z" level=warning msg="Conflict when uploading: A test report for commit 6dabaaa6cd7e4c5c51dc538e4fbb7861ca433d8e already exists, skipping upload" I guess this is because the test reporter assumes that if coverage exists, then it has been sent? Config from here: https://docs.codeclimate.com/docs/travis-ci-test-coverage#section-travis-ci-single-test-suite-non-parallel-builds
28 lines
831 B
YAML
28 lines
831 B
YAML
language: ruby
|
|
|
|
matrix:
|
|
include:
|
|
- name: "RuboCop lint on pre-installed Ruby version"
|
|
rvm: 2.5.3 # Pre-installed Ruby version
|
|
before_install:
|
|
- gem install bundler
|
|
script: bundle exec rake rubocop # ONLY lint once, first
|
|
- rvm: 2.3.5
|
|
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
|
|
after_script:
|
|
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
|
|
- rvm: 2.4.6
|
|
- rvm: 2.5.5
|
|
- rvm: 2.6.3
|
|
- name: "jruby-9.1.8.0 on OpenJDK 8"
|
|
rvm: jruby-9.1.8.0
|
|
env:
|
|
- JRUBY_OPTS="--debug"
|
|
jdk: openjdk8
|
|
- rvm: jruby-9.2.8.0
|
|
env:
|
|
- JRUBY_OPTS="--debug"
|
|
|