forked from hpcugent/vsc_user_docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
36 lines (36 loc) · 1.57 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
language: generic
env:
global:
# set this to the repo which should have the resulting PDF's
- GITHUB_REPO="hpcugent/vsc_user_docs"
# this is an encrypted version of an access token for the repo above.
# Create it by using the travis tool: travis encrypt -r $GITHUB_REPO GH_TOKEN=<TOKEN>
# and replace it below
- secure: 2p42CdapsQR6xkcR/cnqngbwwYqol7QKosxa6n7r4HhKFw7pcaSRWa/5fLOKIunMxW56UfQgTHCecGAU5/oWS8jmEVZYpBThynQBsHBt4xtPw4RUJzAwn6BmWeKX4RHKE6CCcscxAa1Q9vxBWJ0/yRLSP/ikfj6cAH33ga00dFA=
before_install:
# verify SHA256 checksums to ensure version is bumped when changes are made
# if this check fails, you should run ./check-version.sh intro-HPC and commit the changes made by the script
- INTRO_HPC_EXPECTED="20171130.01 5f3b77fee36edea3b2cb0e6da131dff474216e4085ec1076199dc66fb0458999"
- ./check-version.sh intro-HPC | grep "Checksum for intro-HPC is still valid"
- cd $HOME
- travis_retry wget http://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz
- tar -xzf install-tl-unx.tar.gz ; cd install-tl-*/
install:
- sed -i "s:MYPREFIX:$HOME:g" $TRAVIS_BUILD_DIR/texlive.profile
- ./install-tl -profile $TRAVIS_BUILD_DIR/texlive.profile
- export PATH=$HOME/.texlive/bin/x86_64-linux:$PATH
- pdflatex --version ; latexmk --version
script:
- cd $TRAVIS_BUILD_DIR
- make all
after_success:
- mkdir -p $HOME/build
- cp -a */*.pdf $HOME/build
- ls $HOME/build
deploy:
skip_cleanup: true
provider: script
script: $TRAVIS_BUILD_DIR/deploy.sh
on:
repo: $GITHUB_REPO
branch: master