update dpl v2 docs
AMD64
Python: 3.5.2 Shell
Git
api
travis-ci/docs-travis-ci-com:.travis.yml@baefebb
#language: ruby
dist: xenial
language: python
python:
- "3.5.2"
branches:
only:
- master
- sf-dpl-ci
env:
global:
- PATH=$HOME/.local/user/bin:$PATH
- NOKOGIRI_USE_SYSTEM_LIBRARIES=true # speeds up installation of html-proofer
cache:
pip: true
directories:
- vendor/bundle
- node_modules
- $TRAVIS_BUILD_DIR/tmp/.htmlproofer #https://github.com/gjtorikian/html-proofer/issues/381
addons:
apt:
packages:
- libxml2-utils
jobs:
include:
- name: update dpl v2 docs
if: type = cron || branch = sf-dpl-ci
language: shell
cache: false
install:
- rvm use 2.5.3
script:
- git clone https://github.com/travis-ci/dpl.git --branch sf-git
- cd dpl
- gem build dpl.gemspec
- gem install dpl-*.gem
- cd ..
- rm -rf dpl
- bin/dpl
deploy:
- provider: git_branch
edge: sf-git
token:
secure: "YHuTjIGKpG0A8QJ4kmdLfOW1n+62uLakXv0KjCzWExl22qLSn2frip3j8JsaeMfndsmNZBUfGoONVHvDS+PHnkbRMYf21SjgctpVfHRYZQ3pulexOViEQ6azRgCBWuPO8A+vAyxvjlV4e3UDGnt2x/0X/Tdg9iVf/zzBGjM0YX0="
branch: sf-dpl-ci
pull_request: true
on:
branch:
- sf-dpl-ci
deploy:
provider: heroku
api_key:
secure: "hylw2GIHMvZKOKX3uPSaLEzVrUGEA9mzGEA0s4zK37W9HJCTnvAcmgRCwOkRuC4L7R4Zshdh/CGORNnBBgh1xx5JGYwkdnqtjHuUQmWEXCusrIURu/iEBNSsZZEPK7zBuwqMHj2yRm64JfbTDJsku3xdoA5Z8XJG5AMJGKLFgUQ="
app: docs-travis-ci-com
on:
branch:
- master
edge: true
# notifications:
# slack:
# rooms:
# secure: LPNgf0Ra6Vu6I7XuK7tcnyFWJg+becx1RfAR35feWK81sru8TyuldQIt7uAKMA8tqFTP8j1Af7iz7UDokbCCfDNCX1GxdAWgXs+UKpwhO89nsidHAsCkW2lWSEM0E3xtOJDyNFoauiHxBKGKUsApJTnf39H+EW9tWrqN5W2sZg8=
# on_success: never
# webhooks:
# https://docs.travis-ci.com/update_webhook_payload_doc
install:
- rvm use 2.6.3 --install
- bundle install --deployment
- sudo apt-get install libcurl4-openssl-dev # required to avoid SSL errors
script:
- bundle exec rake test
- xmllint --noout _site/feed.build-env-updates.xml
Build Config
{
"language": "python",
"os": [
"linux"
],
"dist": "xenial",
"python": [
"3.5.2"
],
"branches": {
"only": [
"master",
"sf-dpl-ci"
]
},
"env": {
"global": [
{
"PATH": "$HOME/.local/user/bin:$PATH"
},
{
"NOKOGIRI_USE_SYSTEM_LIBRARIES": "true"
}
]
},
"cache": {
"pip": true,
"directories": [
"vendor/bundle",
"node_modules",
"$TRAVIS_BUILD_DIR/tmp/.htmlproofer"
]
},
"addons": {
"apt": {
"packages": [
"libxml2-utils"
]
}
},
"jobs": {
"include": [
{
"name": "update dpl v2 docs",
"if": "type = cron || branch = sf-dpl-ci",
"language": "shell",
"cache": false,
"install": [
"rvm use 2.5.3"
],
"script": [
"git clone https://github.com/travis-ci/dpl.git --branch sf-git",
"cd dpl",
"gem build dpl.gemspec",
"gem install dpl-*.gem",
"cd ..",
"rm -rf dpl",
"bin/dpl"
],
"deploy": [
{
"token": {
"secure": "YHuTjIGKpG0A8QJ4kmdLfOW1n+62uLakXv0KjCzWExl22qLSn2frip3j8JsaeMfndsmNZBUfGoONVHvDS+PHnkbRMYf21SjgctpVfHRYZQ3pulexOViEQ6azRgCBWuPO8A+vAyxvjlV4e3UDGnt2x/0X/Tdg9iVf/zzBGjM0YX0="
},
"branch": "sf-dpl-ci",
"pull_request": true,
"provider": "git_branch",
"edge": "sf-git",
"on": {
"branch": [
"sf-dpl-ci"
]
}
}
]
}
]
},
"deploy": [
{
"provider": "heroku",
"api_key": {
"secure": "hylw2GIHMvZKOKX3uPSaLEzVrUGEA9mzGEA0s4zK37W9HJCTnvAcmgRCwOkRuC4L7R4Zshdh/CGORNnBBgh1xx5JGYwkdnqtjHuUQmWEXCusrIURu/iEBNSsZZEPK7zBuwqMHj2yRm64JfbTDJsku3xdoA5Z8XJG5AMJGKLFgUQ="
},
"app": "docs-travis-ci-com",
"on": {
"branch": [
"master"
]
},
"edge": true
}
],
"install": [
"rvm use 2.6.3 --install",
"bundle install --deployment",
"sudo apt-get install libcurl4-openssl-dev"
],
"script": [
"bundle exec rake test",
"xmllint --noout _site/feed.build-env-updates.xml"
]
}