travis-ci/dpl:.travis.yml@b577682
language: ruby
rvm:
- "2.2.9"
- "2.3.6"
- "2.4"
- "2.5.3"
- "2.6.3"
jobs:
include:
- stage: deploy
if: branch = v1 AND NOT type IN (pull_request)
cache: false
before_deploy:
- sed -i.bak "s/VERSION = '.*'/VERSION = '${DPL_VERSION}'/g" lib/dpl/version.rb
- git config user.name "travisbot"
- git config user.email "deploy@travis-ci.org"
- git add lib/dpl/version.rb
- git commit -m "Update DPL::Version"
deploy:
- provider: rubygems
edge:
branch: master
api_key:
secure: ZmZoDL1tilWvQrqRWDm2K4xQ5Grt9eRJzYVZPLANR0P1TM5BJBLk+UhWCWCPkkDVIBWMa5ANsiFYBxtH65Lw+uqMztSpVusk0l0LQXZGv9jMpT9445A8008U3vvfS0ke7IG8Q4bMAC7Sd6VGaiHDyZC7zmNvnqMpmVX7ShcgBME=
gem: dpl
gemspec_glob: 'dpl*.gemspec'
on:
repo: travis-ci/dpl
branch: v1
allow_failures:
env:
global:
- DPL_VERSION=$(ruby -I lib -r dpl/version.rb -e "puts DPL::VERSION.succ + \".travis.#{ENV['TRAVIS_JOB_NUMBER']}\"")
sudo: false
before_cache:
- rm -rf $GEM_HOME/cache/dpl-*.travis.*.gem $GEM_HOME/gems/dpl-*.travis.* $GEM_HOME/specifications/dpl-*.travis.*
- git checkout bin/dpl
cache:
directories:
- vendor/cache
- $GEM_HOME
- node_modules
before_install:
- gem update bundler
before_script:
- rm -f $(ruby -r rubygems -e "puts Gem.bindir")/dpl
script:
- rake
Build Config
{
"language": "ruby",
"os": [
"linux"
],
"dist": "xenial",
"rvm": [
"2.2.9",
"2.3.6",
"2.4",
"2.5.3",
"2.6.3"
],
"jobs": {
"include": [
{
"stage": "deploy",
"if": "branch = v1 AND NOT type IN (pull_request)",
"cache": false,
"before_deploy": [
"sed -i.bak \"s/VERSION = '.*'/VERSION = '${DPL_VERSION}'/g\" lib/dpl/version.rb",
"git config user.name \"travisbot\"",
"git config user.email \"deploy@travis-ci.org\"",
"git add lib/dpl/version.rb",
"git commit -m \"Update DPL::Version\""
],
"deploy": [
{
"provider": "rubygems",
"edge": {
"branch": "master"
},
"api_key": {
"secure": "ZmZoDL1tilWvQrqRWDm2K4xQ5Grt9eRJzYVZPLANR0P1TM5BJBLk+UhWCWCPkkDVIBWMa5ANsiFYBxtH65Lw+uqMztSpVusk0l0LQXZGv9jMpT9445A8008U3vvfS0ke7IG8Q4bMAC7Sd6VGaiHDyZC7zmNvnqMpmVX7ShcgBME="
},
"gem": "dpl",
"gemspec_glob": "dpl*.gemspec",
"on": {
"repo": "travis-ci/dpl",
"branch": [
"v1"
]
}
}
]
}
],
"allow_failures": []
},
"env": {
"global": [
{
"DPL_VERSION": "$(ruby -I lib -r dpl/version.rb -e \"puts DPL::VERSION.succ + \\\".travis.#{ENV['TRAVIS_JOB_NUMBER']}\\\"\")"
}
]
},
"sudo": false,
"before_cache": [
"rm -rf $GEM_HOME/cache/dpl-*.travis.*.gem $GEM_HOME/gems/dpl-*.travis.* $GEM_HOME/specifications/dpl-*.travis.*",
"git checkout bin/dpl"
],
"cache": {
"directories": [
"vendor/cache",
"$GEM_HOME",
"node_modules"
]
},
"before_install": [
"gem update bundler"
],
"before_script": [
"rm -f $(ruby -r rubygems -e \"puts Gem.bindir\")/dpl"
],
"script": [
"rake"
]
}