forked from cf-convention/Conformance
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
39 lines (38 loc) · 3.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
language: ruby
rvm:
- 2.1.2
install:
- gem install asciidoctor
- asciidoctor --version
- gem install --pre asciidoctor-pdf
- asciidoctor-pdf --version
before_script:
- git config --global user.email $GIT_EMAIL
- git config --global user.name $GIT_NAME
script:
- mkdir build
- asciidoctor conformance.adoc -D build
- asciidoctor-pdf -d book conformance.adoc -D build
after_success:
- git fetch origin gh-pages:gh-pages
- git checkout gh-pages
- if [[ $TRAVIS_TAG ]]; then TARGET_DIR=$TRAVIS_TAG; else TARGET_DIR='.'; fi
- mkdir -p $TARGET_DIR
- cp build/conformance.html $TARGET_DIR/
- cp build/conformance.pdf $TARGET_DIR/
- git add $TARGET_DIR/conformance.html
- git add $TARGET_DIR/conformance.pdf
- if [[ $TRAVIS_TAG ]]; then sed s/Latest/$TRAVIS_TAG/ index.html > $TARGET_DIR/index.html;
git add $TARGET_DIR/index.html; fi
- git commit -m "Auto-generated from ${TRAVIS_REPO_SLUG}@${TRAVIS_COMMIT}"
- git push https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages >/dev/null
2>&1
branches:
only:
- master
- /^v\d+\.\d+/
env:
global:
- secure: eTtQK9ui7m81uoZ22Jms0iZ5N2W5yJfUKTSBDkICZT8xr9yv244PAZkDujhwCkXIKD+ShbKysi/9YiL2TXBmhKze5Mdk9PM8+RElA3rTRkMR93pTHVQ9G0cCsWmMQhNrxaFOkmANfn3zHAt0K4bRDHJj0UdTuETqpN7kl6wj3VPjbBiAymvMiaRocMCEUEgrTgebAbKxyEqb3cF+E0RoIHNlmpSArOv8u9qg+tAJvSAiiQ0A0AuL7H5u2jBrdx3hF61gpIr0O5zUxFK3NvyhGpK1O0YD/njPhyFFitHQ6+qx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