mirror of
https://github.com/lostisland/faraday.git
synced 2025-10-07 00:11:11 -04:00
CI: Send CodeClimate test reports, deploy to RubyGems on tagging (#900)
This commit is contained in:
parent
c2719dc5cb
commit
5bbf4eb3ef
40
.travis.yml
40
.travis.yml
@ -5,7 +5,11 @@ rvm:
|
||||
- 2.3
|
||||
- 2.4
|
||||
- 2.5
|
||||
- 2.6
|
||||
- ruby-head
|
||||
|
||||
matrix:
|
||||
fast_finish: true # do not wait for ruby-head to mark the build as finished
|
||||
allow_failures:
|
||||
- ruby-head
|
||||
|
||||
jobs:
|
||||
@ -14,16 +18,18 @@ jobs:
|
||||
rvm: ruby-2.4.1 # Pre-installed on TravisCI
|
||||
install: true # Do not bundle install
|
||||
script: gem install rubocop --no-document && rubocop
|
||||
|
||||
stages:
|
||||
- linting
|
||||
- test
|
||||
|
||||
branches:
|
||||
only:
|
||||
- master
|
||||
- 0.1x
|
||||
|
||||
- stage: latest
|
||||
rvm: 2.6 # Run custom before/after scripts for latest supported Ruby version.
|
||||
before_script:
|
||||
- curl -o ./cc-test-reporter -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64
|
||||
- chmod +x ./cc-test-reporter
|
||||
- ./cc-test-reporter before-build
|
||||
after_script: ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
|
||||
- stage: release
|
||||
rvm: 2.6
|
||||
install: true # Do not bundle install
|
||||
script: skip
|
||||
if: tag IS present
|
||||
deploy:
|
||||
provider: rubygems
|
||||
api_key:
|
||||
@ -32,4 +38,14 @@ deploy:
|
||||
on:
|
||||
tags: true
|
||||
repo: lostisland/faraday
|
||||
rvm: 2.5
|
||||
|
||||
stages:
|
||||
- linting
|
||||
- test
|
||||
- latest
|
||||
- release
|
||||
|
||||
branches:
|
||||
only:
|
||||
- master
|
||||
- 0.1x
|
||||
|
Loading…
x
Reference in New Issue
Block a user