forked from travis-ci/docs-travis-ci-com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
74 lines (70 loc) · 2.08 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
#language: ruby
dist: xenial
branches:
only:
- master
jobs:
include:
- name: build site
language: python
python:
- "3.5.2"
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
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
deploy:
provider: heroku
api_key:
secure: "hylw2GIHMvZKOKX3uPSaLEzVrUGEA9mzGEA0s4zK37W9HJCTnvAcmgRCwOkRuC4L7R4Zshdh/CGORNnBBgh1xx5JGYwkdnqtjHuUQmWEXCusrIURu/iEBNSsZZEPK7zBuwqMHj2yRm64JfbTDJsku3xdoA5Z8XJG5AMJGKLFgUQ="
app: docs-travis-ci-com
on:
branch:
- master
edge: true
- name: update dpl v2 docs
if: type = cron || commit_message =~ /ci:dpl/
language: shell
cache: false
install:
- rvm use 2.5.3
script:
- git clone https://github.com/travis-ci/dpl.git
- cd dpl
- gem build dpl.gemspec
- gem install dpl-*.gem
- cd ..
- rm -rf dpl
- bin/dpl
deploy:
- provider: git_push
token:
secure: "YHuTjIGKpG0A8QJ4kmdLfOW1n+62uLakXv0KjCzWExl22qLSn2frip3j8JsaeMfndsmNZBUfGoONVHvDS+PHnkbRMYf21SjgctpVfHRYZQ3pulexOViEQ6azRgCBWuPO8A+vAyxvjlV4e3UDGnt2x/0X/Tdg9iVf/zzBGjM0YX0="
branch: auto-dpl-v2-update-docs
pull_request: true
edge:
branch: master
notifications:
slack:
rooms:
secure: LPNgf0Ra6Vu6I7XuK7tcnyFWJg+becx1RfAR35feWK81sru8TyuldQIt7uAKMA8tqFTP8j1Af7iz7UDokbCCfDNCX1GxdAWgXs+UKpwhO89nsidHAsCkW2lWSEM0E3xtOJDyNFoauiHxBKGKUsApJTnf39H+EW9tWrqN5W2sZg8=
on_success: never
webhooks:
https://docs.travis-ci.com/update_webhook_payload_doc