forked from sendgrid/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
53 lines (53 loc) · 3.42 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
language: ruby
sudo: false
cache: bundler
rvm:
- 2.1
branches:
only:
- master
- develop
before_install:
- sh -c "if [ '$TRAVIS_BRANCH' = 'develop' ]; then echo 'staging https://travis-ci.org/$TRAVIS_REPO_SLUG/builds/$TRAVIS_BUILD_ID' >
'source/_data/version.yml' ; fi"
- sh -c "if [ '$TRAVIS_BRANCH' = 'master' ]; then echo 'https://travis-ci.org/$TRAVIS_REPO_SLUG/builds/$TRAVIS_BUILD_ID' >
'source/_data/version.yml' ; fi"
install:
- travis_retry npm install
- travis_retry bower install
- travis_retry bundle install
before_script:
- cp _config.sample.yml _config.yml
- sh -c "if [ '$TRAVIS_BRANCH' = 'master' ] && [ '$TRAVIS_PULL_REQUEST' = false ];
then ruby set_prod_config.rb; fi"
script:
- bundle exec jekyll build
- bundle exec rake linklint
- bundle exec rake validate_json_xml
after_success:
- sh -c "if [ '$TRAVIS_PULL_REQUEST' = false ]; then bundle exec cap deploy; fi"
- sh -c "if [ '$TRAVIS_PULL_REQUEST' = false ]; then bundle exec rake invalidate_cloudfront;
fi"
- sh -c "if [ '$TRAVIS_BRANCH' = 'master' ] && [ '$TRAVIS_PULL_REQUEST' = false ];
then bundle exec rake index; fi"
env:
global:
- secure: CQ+PYDS2uWc/g+LfABW812Ur+jhX00hOzJj3TYm+vT2tYhVfQC/6WhdLdIoqhGmTyb+3vHyX2abr4p+1q5ou4uOw7VmaX33uvTxKRhQ/+aOPAam91jZ2LmGNeGQ5macGWYFH2H7hQiI0FEz9vG4GBxVKnJD5IwAEqag95jp0qfw=
- secure: 0hTizSjrO8wdwfaXCRqPQfjGplG8yk5quLGhNRjUx1VxngMvrN7m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mviQsy5oaRfgozbGeeXDlsPlpt1ezE4u+ChEzZwd6UbsSeUjr3RTWl6prrxYX4XmO7Hx6i7dsFLOV66av5gNyglfUTLXTEKJgg4Ckr/1GiqvAcEgCrXjvHyFtc=
- secure: 6088c9CZ3gB6UL4lZ27VU16s+O0pFoeiE1GSOEZru/1GTH1Mifhb95lpu1PqkZsvVVsyy3MVDyoZcxyHWuvmUwH8RHvZzj7cuXwwbxO2kxStECx1QUUOeSZDR7GtHQrxSDWYD7wBeKgdP7Bdq6gvUYOL8S06kTNCTFApLJbT7Yc=
- secure: KroLKOYGGmplD0nCxTXUB0R+tnK8bFt46yp+d2bzOWxaulKHshwXV231e2AiPHxVlSYVJRiO7pZbTuVhbH7GD1ht41TlRdzURStq4kPSDrP9ZVQwRWpkKjgIMguxPIs/46ccxbA48tBYYJyy/51Ia4isQyQ9Wl083W0mC319kv0=
notifications:
hipchat:
rooms:
secure: vVKtWAX1+24dxhJFk38dbnBimswn4Tdj0PRy5UURkhuujSGYW7PPhkyJf5jcz381AsjUxzzEPLTHy41Ve/pfIng3Y7c9OfS6a/M1qjrd4c2M+Fg9ntHr4ck2G5MsSQEg/zwKSrUXMk/RXKsdn5h4qmWr06i74Lau+SeWuS5xXiA=
template:
- '<a href="https://travis-ci.org/%{repository}/builds/%{build_id}">Docs Build
%{build_number}</a> on branch <i>%{branch}</i> by %{author}: <strong>%{message}</strong>
<a href="https://github.com/sendgrid/docs/commits/%{commit}">View on GitHub</a>'
format: html