-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
30 lines (25 loc) · 899 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
language: ruby
rvm:
- 2.6
branches:
only:
- master
before_install:
- sudo apt-get -qq update
- sudo apt-get -y install texlive-latex-base texlive-base texlive-latex-extra texlive-lang-italian ruby-dev ruby wget
- sudo apt-get -y install texlive-fonts-extra texlive-fonts-recommended latexmk texlive-latex-recommended texlive-latex3
install: gem install kramdown
script:
- find . -iname "." -type d -o -iname ".*" -type d -prune -o -type d -exec cp stdmdoc.cls {}/ \;
- cp .site/do .
- find . -type f -iname "*.tex" -exec ./do compile {} \;
- find . -type f -iname "*.pdf" -exec ./do checkout {} \;
- find . -type f -iname "*.md" -exec ./do checkout {} \;
- cp -r .site/public ../compiled-pdfs/
- cp .site/indexing ../
- cd ../ && ./indexing compiled-pdfs
deploy:
skip_cleanup: true
provider: surge
project: ../compiled-pdfs/
domain: domandeoralimatematicaunipi.surge.sh