.travis.yml
language: ruby
rvm:
- "2.2.9"
- "2.3.6"
- "2.4"
- "2.5.3"
os:
- linux
- osx
jobs:
include:
- os: windows
language: generic
install:
- bundle install
- stage: deploy
if: branch = master 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
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
{
"os": [
"linux",
"osx"
],
"env": {
"global": [
"DPL_VERSION=$(ruby -I lib -r dpl/version.rb -e \"puts DPL::VERSION.succ + \\\".travis.#{ENV['TRAVIS_JOB_NUMBER']}\\\"\")"
]
},
"rvm": [
"2.2.9",
"2.3.6",
"2.4",
"2.5.3"
],
"jobs": {
"include": [
{
"os": "windows",
"install": [
"bundle install"
],
"language": "generic"
},
{
"if": "branch = master AND NOT type IN (pull_request)",
"cache": false,
"stage": "deploy",
"deploy": [
{
"gem": "dpl",
"edge": {
"branch": "master"
},
"true": {
"repo": "travis-ci/dpl"
},
"api_key": {
"secure": "jfn/+h49+hyJFjGzLtvP8vrRGKpNdmRfGy/SbfA8AdWEhBhYANQqZUVOpIfyN7Ctnuc62f143aAfS7kiGhjASLNtp/9+yZDy7SfAqZ1QokyxNYubvNdJek0cGzRO8KkrMmmejPVbugLtQ3BbdiBFDNh83VqEx+XadENT39AKVJX/K+IOjwoWaUEK/QAjded1oW/MOfD+3cGMOQCtd/iug8fjWCo/Clqyrh0ob7+j+TWwYxlIiKhuCeiwaOUKRwFlqNvzZCJgEfMx0uW+L4+igbSi/2l5pBTBvRjUVm3NKnPkepKVMjcBmA/6Se3REyegyAwQh6aNmwy4vm91e4Hsl+l52DCBXfl4BXARJbSZ5WddquF4vFFyVa8AEuj2lmCdsHcKk31ZEOshknjOMCu01epMS+NP/qZFL4rpk7naN/hRo5bDJCskFWu4u+QQrI2TGg4WNFHulJBjpn+wrXF10PZfwci+NLP3HwnOs2CKIRKjJsIAPgZfgO39V3AV7zNEPtWW/ZkX+re55HJK5jmZpInoNt/7PLhmr0noE0XLt884W98g7oz4Xtf/t7py36ghmsIY0liYGhWMKXDwG81Npk3zRqsWrnkbYFdWwPF0vd7ulr5R6ED5jy/2r0MuZSAnRAJPVVeJRaBqoLhjhGDlyhqAQzWM65BqWYAoKaZ8lxI="
},
"provider": "rubygems",
"gemspec_glob": "dpl*.gemspec"
}
],
"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\""
]
}
],
"allow_failures": null
},
"sudo": false,
"cache": {
"directories": [
"vendor/cache",
"$GEM_HOME",
"node_modules"
]
},
"script": [
"rake"
],
"language": "ruby",
"before_cache": [
"rm -rf $GEM_HOME/cache/dpl-*.travis.*.gem $GEM_HOME/gems/dpl-*.travis.* $GEM_HOME/specifications/dpl-*.travis.*",
"git checkout bin/dpl"
],
"before_script": [
"rm -f $(ruby -r rubygems -e \"puts Gem.bindir\")/dpl"
],
"before_install": [
"gem update bundler"
]
}