-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
32 lines (27 loc) · 987 Bytes
/
.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
sudo: required
branches:
except:
- gh-pages
env:
- book="core" stylename="SR54"
before_install:
- git clone https://github.com/wiztigers/docgen.git docgen
- chmod +x docgen/setup.sh docgen/docgen.py
- ./docgen/setup.sh sass ${stylename} ${stylename}-pdf
script:
- ./docgen/docgen.py -v --html --input ${book}.adoc --output index.html --outdir gh-pages --stylename ${stylename} --stylesdir sass --linkstyle
- ./docgen/docgen.py -v --html --input ${book}.adoc --output index-pdf.html --outdir gh-pages --stylename ${stylename}-pdf --stylesdir sass --linkstyle
- ./docgen/docgen.py -v --pdf --input gh-pages/index-pdf.html --output ${book}.pdf --outdir gh-pages
- rm gh-pages/index-pdf.html
- cp -R ./docgen/www/* gh-pages/
- cp -R www/* gh-pages/
- cp -R charsheet gh-pages/fiche
deploy:
provider: pages
skip-cleanup: true
github-token: $GITHUB_TOKEN
keep-history: true
committer-from-gh: true
local-dir: gh-pages
on:
branch: master