Skip to content

Commit 38997dd

Browse files
committed
Add .travis.yml
1 parent 9a1b7aa commit 38997dd

File tree

3 files changed

+50
-0
lines changed

3 files changed

+50
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@
55
*.toc
66

77
/build/
8+
/deploy/

.travis.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
os: "linux"
2+
dist: "bionic"
3+
4+
language: "minimal"
5+
6+
addons:
7+
apt:
8+
update: true
9+
packages:
10+
- "scons"
11+
- "texlive-fonts-extra"
12+
- "texlive-lang-cyrillic"
13+
- "texlive-lang-german"
14+
- "texlive-latex-extra"
15+
- "texlive-luatex"
16+
- "texlive-plain-generic"
17+
- "texlive-science"
18+
19+
install:
20+
# update KOMA-Script package as TeX Live 2017 is too old
21+
- "mkdir tmp && cd tmp"
22+
- "wget https://svwh.dl.sourceforge.net/project/koma-script/KOMA-Script/koma-script-3511.zip"
23+
- "unzip koma-script-3511.zip"
24+
- "rm koma-script-3511.zip"
25+
- "sudo mv * /usr/local/share/texmf/"
26+
- "sudo texhash"
27+
- "cd .. && rmdir tmp"
28+
29+
script:
30+
- "/usr/bin/env python3 $(which scons) -j $(nproc)"
31+
32+
before_deploy:
33+
- "mkdir deploy"
34+
- "find build -name '*.pdf' | sort | grep -E 'lectures/([^/]+)/\\1.pdf|collection/collection.pdf' | xargs cp -t deploy/"
35+
- "mv deploy/collection.pdf deploy/_collection.pdf"
36+
37+
deploy:
38+
provider: "releases"
39+
api_key:
40+
secure: "hctc8wnAGvnWOqQ05kBzE8tnQXeMcZQYWP4xbgm3ZsupSqfKLe2lunE/X7ef04z5tzIon6hx7OLHYqIAzsd6h/enPLBZGgUQ2o7VCDezwm4hmCQK1X9akTJ0xQibkmyXXGpNK8ELSf+snr2vrVspU6F2V1ZVCx8qSeeK54eAWdcyQbpm0KYGF2QSOk7R4/gcSI+YmTdK8QIQQOlnNBU6UGF3pxzaryxOEvLgT37yfRANmnDdYznjswU14tZl3dp2+XXsrE6nKbkPMsDeQ91ASPU9zOnFfJlvB6Noy5aEbIR49DfRegyn0VMCorQztp0xw+FUzJA1ZgYqf4spQf0Mgjt7be2J3i+N0vwVdyZAOzfLs126gxlb+k/s/+E9Y4f0A89eNJ4ae1vffzY+6IlUNjZjkvoVZXXqF7VCPyicN7vbP/QZxlnoXjMt93X2CP+nqL+brsphGQG9lDvqNuzUk11oN2HeOeh2VM7C1CGQjXmbwYeja/RjZJxvftk9v2cKhSt6YFokPIOlzmNml7z8F3QFIS3b0QiorJJAT/MnA8+RMjFHhcWJPAb4ypNsLNonwIYTQzptT21cqQNgpj98n/QfkzEravnMurz9hTFRAZ1SAzeX+sT3GA0jYGGmb/MrmmsbbPad1JnNk471C7IJMwYc5bsgMwSLI5y+ycMc5Ic="
41+
file: "deploy/*.pdf"
42+
file_glob: true
43+
# needs to be removed for Travis's dpl v2
44+
# see https://blog.travis-ci.com/2019-08-27-deployment-tooling-dpl-v2-preview-release#cleaning-up-the-git-working-directory
45+
skip_cleanup: true
46+
on:
47+
repo: "valentjn/class-notes"
48+
tags: true

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,4 @@ Execute `scons` to build all lectures and the collection. Use `-j 4` to run four
6464
### Possible Problems
6565

6666
- Make sure that your system runs SCons with Python 3, otherwise running `scons` will fail (e.g., Ubuntu). On Linux, you can try running `/usr/bin/env python3 $(which scons)` instead.
67+
- For other potential build problems, a look at `.travis.yml` might help.

0 commit comments

Comments
 (0)