forked from HSR-Stud/DigDes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
35 lines (33 loc) · 841 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
notifications:
email: false
sudo: required
dist: trusty
install:
- dir
- pwd
- source ./Travis/texlive_install.sh
cache:
directories:
- /tmp/texlive
- $HOME/.texlive
# Change working directory so including files will work
before_script:
- dir
- pwd
script:
# Prefix command with travis_wait x so it times out after 3 mins, because when the LaTeX doesn't compile pdflatex just hangs instead of quitting.
- travis_wait 3 pdflatex -interaction=nonstopmode -halt-on-error ./DigDes.tex
- travis_wait 3 pdflatex -interaction=nonstopmode -halt-on-error ./DigDes.tex
- travis_wait 3 pdflatex -interaction=nonstopmode -halt-on-error ./DigDes.tex
before_deploy:
- dir
deploy:
provider: releases
api_key:
secure: $GITHUB_RELEASE_TOKEN
file:
- ./DigDes.pdf
skip_cleanup: true
on:
tags: true
all_branches: true