-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
32 lines (28 loc) · 1.32 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
sudo: required
env:
- stylename="wizdom" exportdir="gh-pages"
before_install:
- git clone https://github.com/wiztigers/docgen.git docgen
- chmod +x docgen/setup.sh docgen/docgen.py
- ./docgen/setup.sh sass ${stylename}
script:
- mkdir ${exportdir}
- cp -r ./docgen/www/* ${exportdir}
- cp -r ./www/* ${exportdir}
- cp -r resources ${exportdir}
- cp README.adoc ${exportdir}
- ./docgen/docgen.py --html --input core.adoc --output index.html --outdir ${exportdir} --stylename ${stylename} --stylesdir sass --linkstyle
- ./docgen/docgen.py --pdf --input ${exportdir}/index.html --output InteractionHommeMachine.pdf --outdir ${exportdir}
- ./docgen/docgen.py --html --input TP/Qt.adoc --output Qt.html --outdir ${exportdir}/TP --stylename ${stylename}
- ./docgen/docgen.py --html --input TP/Qt-QGraphics.adoc --output Qt-QGraphics.html --outdir ${exportdir}/TP --stylename ${stylename}
- ./docgen/docgen.py --html --input TP/web.adoc --output Web.html --outdir ${exportdir}/TP --stylename ${stylename}
- cp -r TP/resources ${exportdir}/TP
deploy:
provider: pages
skip-cleanup: true
github-token: $GITHUB_TOKEN
keep-history: true
committer-from-gh: true
local-dir: gh-pages
on:
branch: master