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
meetup/meetup-web-platform:.travis.yml@35783c9
language: node_js
node_js:
- '10.21'
cache:
directories:
- node_modules
branches:
only:
- master # (PRs to master, master merges, master pushes)
- next # consolidating branch for breaking changes
env:
global:
- CI_BUILD_NUMBER=$TRAVIS_BUILD_NUMBER
- NPM_TOKEN="$NPM_TOKEN"
before_install:
- echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" > $HOME/.npmrc
before_script:
- lerna run build
- git diff --exit-code yarn.lock
- yarn check
script:
- yarn flow
- yarn test
after_success:
- git config --global user.email "builds@travis-ci.com"
- git config --global user.name "Travis CI"
- >
[ "${TRAVIS_BRANCH}" = "master" ] && [ "${TRAVIS_PULL_REQUEST}" = "false" ] &&
export GIT_TAG=$(make version) ||
export GIT_TAG=$(make version)-beta
- >
[ "${TRAVIS_BRANCH}" = "master" ] && [ "${TRAVIS_PULL_REQUEST}" = "false" ] &&
export NPM_TAG=latest ||
export NPM_TAG=beta
- echo "GIT_TAG=$GIT_TAG"
- echo "NPM_TAG=$NPM_TAG"
- eval "$(ssh-agent)"
- echo "$GITHUB_DEPLOY_KEY" > /tmp/github_deploy_key
- chmod 600 /tmp/github_deploy_key
- ssh-add /tmp/github_deploy_key
- >
lerna publish --yes --force-publish --skip-git --npm-tag $NPM_TAG --repo-version $GIT_TAG &&
git tag -a $GIT_TAG -m "Version $GIT_TAG built by Travis CI - https://travis-ci.com/$TRAVIS_REPO_SLUG/builds/$TRAVIS_JOB_ID" &&
git push --tags git@github.com:$TRAVIS_REPO_SLUG.git
- npm run coveralls
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"
]
}