forked from cf-convention/cf-conventions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
52 lines (46 loc) · 3.41 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
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 cf-conventions.adoc -D build
- asciidoctor-pdf -d book cf-conventions.adoc -D build
after_success:
# Always update the "gh-pages" branch, but tag build goes into
# tag directory and normal build goes into the root directory.
- 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 $TRAVIS_TAG
- cp build/cf-conventions.html $TARGET_DIR/
- cp build/cf-conventions.pdf $TARGET_DIR/
- git add $TARGET_DIR/cf-conventions.html
- git add $TARGET_DIR/cf-conventions.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"
- git push https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages >/dev/null 2>&1
branches:
only:
- master
# Build tags such as "v1.6"
- /^v\d+\.\d+/
env:
global:
- secure: "bBYqqBYoQwFaQ04i1N8AJ2ogyEMQrEybNP6mgj3kCNmDxeg+DT9Y7tEPUhSnxyiNZScahzCvgRebBZxChsRK4qukDLLn1a2uf9SBfelyEyaUfnTlz1e/7XYuTQQ7A/vqq9d/gf9UCGY8VUWLwrQnS61j3UUiMAK0lS8vGnEiPvzDI4r/L3a9/en0lPuZc2qap3RQlF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