-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.travis.yml
39 lines (34 loc) · 969 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
33
34
35
36
37
38
39
##
## Build with Travis.CI
##
sudo: required
language: generic
services:
- docker
script:
- |
baseDir="$(pwd)" &&\
echo "Base directors is '$baseDir'." &&\
inputDir="${baseDir}/book" &&\
mv "$baseDir/README.md" "$inputDir" &&\
outputDir="${baseDir}/output" &&\
echo "Input directory is '$inputDir' and output directory is '$outputDir'." &&\
mkdir -p "${outputDir}" &&\
docker run -v "${inputDir}/":/input/ \
-v "${outputDir}/":/output/ \
-e TRAVIS_COMMIT=$TRAVIS_COMMIT \
-e TRAVIS_REPO_SLUG=$TRAVIS_REPO_SLUG \
-t -i thomasweise/docker-bookbuilder book.md aitoa &&\
cd "${outputDir}"
deploy:
provider: pages
skip-cleanup: true
github-token: $GITHUB_TOKEN
keep-history: false
on:
branch: master
target-branch: gh-pages
local-dir: output
# trigger the build of aitoa-slides after success
after_deploy:
- ../trigger-travis.sh thomasWeise aitoa-slides $TRAVIS_ACCESS_TOKEN