added travis file and test script

This commit is contained in:
jankapunkt
2017-05-26 09:51:42 +02:00
parent 60591ae0aa
commit 2e6fef3f18
3 changed files with 38 additions and 1 deletions

19
tests/test.sh Normal file
View File

@ -0,0 +1,19 @@
#!/usr/bin/env bash
cd $1
echo $(pwd)
ls -la
# remove main.pdf
[ -f main.pdf ] && rm main.pdf || echo "continue without remove"
# test if main.pdf is removed
[ -f main.pdf ] && exit 1 || echo "continue building pdf output"
# build pdf from source
pdflatex main.tex
# exit successfully if pdf present or with error if not present
[ -f main.pdf ] && exit 0 || exit 1