diff --git a/.gitignore b/.gitignore index 6a81712..85534b6 100644 --- a/.gitignore +++ b/.gitignore @@ -35,4 +35,10 @@ glossary.ist #project specific infographics/Font-Awesome-SVG-PNG -infographics/Font-Awesome-SVG-PNG/* \ No newline at end of file +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 diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..fcbb399 --- /dev/null +++ b/.travis.yml @@ -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 diff --git a/tests/test.sh b/tests/test.sh new file mode 100644 index 0000000..9bbfacd --- /dev/null +++ b/tests/test.sh @@ -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 \ No newline at end of file