lambda-fewer-opts Check options[:role]
instead of using `Hash#slice`, which is only 2.5.0 and up
AMD64
no language set
Git
language: ruby
rvm:
- "2.2.9"
- "2.3.6"
- "2.4"
- "2.5.0"
- "2.5"
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:
- rvm: "2.5"
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
zerothi/sisl:.travis.yml@ea42975
language: python
os: linux
# Manage sub-modules manually
git:
quiet: true
submodules: false
addons:
apt:
packages: &common_packages
- gfortran
- libatlas-base-dev
- liblapack-dev
- libnetcdf-dev
- libnetcdff-dev
- eatmydata
- ccache
cache:
directories:
- $HOME/.ccache
- $HOME/.cache/pip
- $HOME/Library/Caches/pip
stages:
# First do simple test, then proceed with the others if successfull
- name: Initial test
- name: Full tests
branches:
except:
- "/.*gh-pages.*/"
- "/rtfd.*/"
notifications:
email:
recipients:
- nickpapior@gmail.com
on_failure: always
on_success: change
webhooks:
urls:
- https://webhooks.gitter.im/e/fa6dc002908da5678b5f
on_success: change
on_failure: always
on_start: never
# Signal we are running travis
env:
global: SISL_TRAVIS_CI=true
jobs:
include:
- stage: Initial test
python: 3.6
- stage: Full tests
python: 3.8
- python: 3.6
env: OPTIONAL_DEPENDENCIES=true
- python: 3.8
env: OPTIONAL_DEPENDENCIES=true
before_install: ./ci/travis-before-install.sh
install: ./ci/travis-install.sh
script: ./ci/travis-script.sh
before_script:
- |
if [[ $TRAVIS_OS_NAME != 'osx' ]]; then
export DISPLAY=:99.0 ;
sh -e /etc/init.d/xvfb start ;
sleep 2 ;
fi
- export MPLBACKEND=Agg
deploy:
provider: pypi
user: zeroth
password:
secure: pDCY0LPyJ8zU0x/AZSaFWGNYHD+I2ERr6a+EOq21Hczk0T3t57ASyQ0Zb9j1gLwNpV5Qnu/rVS54IelwUZrt1TZiXxL842wK1x3IZYzESwNTjkkhgdU6ptZIB3ujUsWaI64KL2U28cFAxmZj5i/RwsRSSjPzPp23sm5HVzrR6BVAzCURow+WUxQfF/SeeA8JBTo6fdfdrzSPsxaq4FCRzEdgXaW7e3Kza+2bEfwumWR/fDL7Uoflx8+lklWUeGPmnTL4h/icenAtcK3b0qieEf3gJMErlD2nfWIBPji7wWUpWNObV1M5VulADYBoZgb88/AGVyQW+x6PMvlM6MvqC+NsiSKYJYRbI+IP5Q8Acf3xeh/OzTTgj1SO3O7kgUcyZpqNBVgfjtMFvNWM4qQDzlnpDg0sruozO59PvEjTLMYIIoAtB5uLq5C0UrbuFpPUKup3xOfzKDqTWI09rz4IUcBW+3wbJ+xsZSPQIkBR5CakGcyeTRg0YVMErXUZr2fcgHwOxNvVtb1swP+kOHM/2ts3mpV8WSdR+xa6+TLkeDL4yp7A0Z9zRkzkDvjPi81IwDGRd2YPU15evT+cCTep3vPCMLlNXfwBiqs/tv4Q87EILj+mXcfLdHmXwKRkG6XWkgbIW2ZHvlS1qjul7nHTLOF8e/4sLJT4OTz3kR5oKzI=
on:
branch: master
tags: true
distributions: "sdist"
skip_existing: true
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.0",
"2.5"
],
"dist": "trusty",
"sudo": false,
"cache": {
"directories": [
"vendor/cache",
"$GEM_HOME",
"node_modules"
]
},
"matrix": {
"include": [
{
"if": "branch = master AND NOT type IN (pull_request)",
"cache": {
"apt": false,
"npm": false,
"pip": false,
"yarn": false,
"cargo": false,
"ccache": false,
"bundler": false,
"packages": false,
"cocoapods": false
},
"stage": "deploy",
"deploy": [
{
"on": {
"repo": "travis-ci/dpl"
},
"gem": "dpl",
"edge": {
"branch": "master"
},
"api_key": {
"secure": "ZmZoDL1tilWvQrqRWDm2K4xQ5Grt9eRJzYVZPLANR0P1TM5BJBLk+UhWCWCPkkDVIBWMa5ANsiFYBxtH65Lw+uqMztSpVusk0l0LQXZGv9jMpT9445A8008U3vvfS0ke7IG8Q4bMAC7Sd6VGaiHDyZC7zmNvnqMpmVX7ShcgBME="
},
"provider": "rubygems",
"gemspec_glob": "dpl*.gemspec"
}
],
"script": [
"skip"
],
"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": [
{
"rvm": "2.5"
}
]
},
"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"
]
}