-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
38 lines (38 loc) · 1.29 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
branches:
only:
- master
sudo: required
dist: trusty
group: deprecated-2017Q4
language: node_js
node_js:
- "6"
env:
global:
- BUILD_DIR="../w20-ghp"
- USECACHE=0
install:
- mkdir travis-phantomjs
- wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2 -O $PWD/travis-phantomjs/phantomjs.tar.bz2
- tar -xvf $PWD/travis-phantomjs/phantomjs.tar.bz2 -C $PWD/travis-phantomjs --strip-components=1
- export PATH=$PWD/travis-phantomjs/bin:$PATH
- wget "https://drive.google.com/uc?export=download&id=0B4ooUkEfVrhlbHJ5aGZTcVV5bUU" -O fonts-humla.tar.gz
- tar xvzf fonts-humla.tar.gz
- sudo mv fonts-humla /usr/share/fonts/
- sudo fc-cache -f -v
script:
- rm -rf $BUILD_DIR
- git clone https://$GITHUB_TOKEN@github.com/tomvit/w20.git $BUILD_DIR
- cd $BUILD_DIR
- git submodule update --init --recursive
- git config --global user.email "travis"
- git config --global user.name "travis"
- git checkout gh-pages
- git fetch
- git merge origin/master --no-commit || true
- export COURSE_HOME=$(pwd)
- $COURSE_HOME/humla/bin/generate-toc.sh $USECACHE
- $COURSE_HOME/humla/bin/generate-pdfs.sh $USECACHE
- git add -A .
- git commit -a -m "Travis build $TRAVIS_BUILD_NUMBER" || true
- git push --quiet origin gh-pages > /dev/null 2>&1