mirror of
https://github.com/lostisland/faraday.git
synced 2025-10-05 00:05:35 -04:00
CI: Send CodeClimate test reports, deploy to RubyGems on tagging (#900)
This commit is contained in:
parent
c2719dc5cb
commit
5bbf4eb3ef
38
.travis.yml
38
.travis.yml
@ -5,31 +5,47 @@ 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:
|
||||
include:
|
||||
- stage: linting
|
||||
rvm: ruby-2.4.1 # Pre-installed on TravisCI
|
||||
install: true # Do not bundle install
|
||||
script: gem install rubocop --no-document && rubocop
|
||||
- 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:
|
||||
secure: EqbOu9BQp5jkivJ8qvTo89f3J49KOByBueU3XulrJ2Kqm/ov4RDFsmp9/uHAnSLdmKSkzZaeq79t1AUNfKGX1ZqkKgq/Nw2BKGFnh5ZOjrkrRZR1Vm09OHxqiViEbtg+jZ8VOLY/iDFEkNIzuj9/H3iHGXC0XiKH2LTHOFH63Bs=
|
||||
gem: faraday
|
||||
on:
|
||||
tags: true
|
||||
repo: lostisland/faraday
|
||||
|
||||
stages:
|
||||
- linting
|
||||
- test
|
||||
- latest
|
||||
- release
|
||||
|
||||
branches:
|
||||
only:
|
||||
- master
|
||||
- 0.1x
|
||||
|
||||
deploy:
|
||||
provider: rubygems
|
||||
api_key:
|
||||
secure: EqbOu9BQp5jkivJ8qvTo89f3J49KOByBueU3XulrJ2Kqm/ov4RDFsmp9/uHAnSLdmKSkzZaeq79t1AUNfKGX1ZqkKgq/Nw2BKGFnh5ZOjrkrRZR1Vm09OHxqiViEbtg+jZ8VOLY/iDFEkNIzuj9/H3iHGXC0XiKH2LTHOFH63Bs=
|
||||
gem: faraday
|
||||
on:
|
||||
tags: true
|
||||
repo: lostisland/faraday
|
||||
rvm: 2.5
|
||||
|
Loading…
x
Reference in New Issue
Block a user