forked from travis-ci/docs-travis-ci-com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
65 lines (61 loc) · 1.76 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
#language: ruby
dist: bionic
branches:
only:
- master
jobs:
include:
- name: build site
language: python
python:
- "3.8.3"
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
- 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