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.3
|
||||||
- 2.4
|
- 2.4
|
||||||
- 2.5
|
- 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
|
- ruby-head
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@ -14,16 +18,18 @@ jobs:
|
|||||||
rvm: ruby-2.4.1 # Pre-installed on TravisCI
|
rvm: ruby-2.4.1 # Pre-installed on TravisCI
|
||||||
install: true # Do not bundle install
|
install: true # Do not bundle install
|
||||||
script: gem install rubocop --no-document && rubocop
|
script: gem install rubocop --no-document && rubocop
|
||||||
|
- stage: latest
|
||||||
stages:
|
rvm: 2.6 # Run custom before/after scripts for latest supported Ruby version.
|
||||||
- linting
|
before_script:
|
||||||
- test
|
- curl -o ./cc-test-reporter -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64
|
||||||
|
- chmod +x ./cc-test-reporter
|
||||||
branches:
|
- ./cc-test-reporter before-build
|
||||||
only:
|
after_script: ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
|
||||||
- master
|
- stage: release
|
||||||
- 0.1x
|
rvm: 2.6
|
||||||
|
install: true # Do not bundle install
|
||||||
|
script: skip
|
||||||
|
if: tag IS present
|
||||||
deploy:
|
deploy:
|
||||||
provider: rubygems
|
provider: rubygems
|
||||||
api_key:
|
api_key:
|
||||||
@ -32,4 +38,14 @@ deploy:
|
|||||||
on:
|
on:
|
||||||
tags: true
|
tags: true
|
||||||
repo: lostisland/faraday
|
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