added travis file and test script
This commit is contained in:
parent
60591ae0aa
commit
2e6fef3f18
6
.gitignore
vendored
6
.gitignore
vendored
@ -36,3 +36,9 @@ glossary.ist
|
||||
#project specific
|
||||
infographics/Font-Awesome-SVG-PNG
|
||||
infographics/Font-Awesome-SVG-PNG/*
|
||||
.idea/jsLibraryMappings.xml
|
||||
.idea/latexcv.iml
|
||||
.idea/misc.xml
|
||||
.idea/modules.xml
|
||||
.idea/vcs.xml
|
||||
.idea/inspectionProfiles/Project_Default.xml
|
||||
|
12
.travis.yml
Normal file
12
.travis.yml
Normal file
@ -0,0 +1,12 @@
|
||||
language: bash
|
||||
|
||||
before_install:
|
||||
- sudo apt-get -qq update
|
||||
- sudo apt-get install -y texlive-base texlive-fonts-extra
|
||||
|
||||
|
||||
script:
|
||||
- bash /tests/test.sh classic
|
||||
- bash /tests/test.sh modern
|
||||
- bash /tests/test.sh two_columns
|
||||
- bash /tests/test.sh infographics
|
19
tests/test.sh
Normal file
19
tests/test.sh
Normal 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
|
Loading…
x
Reference in New Issue
Block a user