language: ruby
rvm:
- "2.2.9"
- "2.3.6"
- "2.4"
- "2.5.3"
jobs:
include:
- stage: deploy
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
script: skip
edge:
branch: master
api_key:
secure: ZmZoDL1tilWvQrqRWDm2K4xQ5Grt9eRJzYVZPLANR0P1TM5BJBLk+UhWCWCPkkDVIBWMa5ANsiFYBxtH65Lw+uqMztSpVusk0l0LQXZGv9jMpT9445A8008U3vvfS0ke7IG8Q4bMAC7Sd6VGaiHDyZC7zmNvnqMpmVX7ShcgBME=
gem: dpl
gemspec_glob: 'dpl*.gemspec'
on:
repo: travis-ci/dpl
if: branch = master AND NOT type IN (pull_request)
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
apache/knox:.travis.yml@745a847
# Configuration file for Travis continuous integration.
# See https://travis-ci.org/apache/knox
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to you under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
language: minimal
matrix:
fast_finish: true
include:
- env: IMAGE=maven:3-jdk-8
- env: IMAGE=maven:3-jdk-11
env:
global:
- DOCKERRUN="docker run -it --rm -v $PWD:/src -v $HOME/.m2:/root/.m2 -v /var/run/docker.sock:/var/run/docker.sock -w /src"
services:
- docker
before_install:
- docker pull $IMAGE
script:
- $DOCKERRUN $IMAGE mvn -T.75C clean verify -U -Dsurefire.useFile=false -Djavax.net.ssl.trustStorePassword=changeit -B -V
- shellcheck gateway-shell-release/home/bin/*.sh
- shellcheck gateway-release/home/bin/*.sh
- shellcheck gateway-release-common/home/bin/*.sh
git:
depth: 1000
cache:
directories:
- $HOME/.m2
# End .travis.yml
Build Config
{
"os": [
"linux"
],
"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"
],
"sudo": false,
"cache": {
"directories": [
"vendor/cache",
"$GEM_HOME",
"node_modules"
]
},
"matrix": {
"include": [
{
"cache": {
"apt": false,
"npm": false,
"pip": false,
"yarn": false,
"cargo": false,
"ccache": false,
"bundler": false,
"packages": false,
"cocoapods": false
},
"stage": "deploy",
"deploy": [
{
"if": "branch = master AND NOT type IN (pull_request)",
"on": {
"repo": "travis-ci/dpl"
},
"gem": "dpl",
"edge": {
"branch": "master"
},
"script": "skip",
"api_key": {
"secure": "ZmZoDL1tilWvQrqRWDm2K4xQ5Grt9eRJzYVZPLANR0P1TM5BJBLk+UhWCWCPkkDVIBWMa5ANsiFYBxtH65Lw+uqMztSpVusk0l0LQXZGv9jMpT9445A8008U3vvfS0ke7IG8Q4bMAC7Sd6VGaiHDyZC7zmNvnqMpmVX7ShcgBME="
},
"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\""
]
}
]
},
"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"
]
}