diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..0dc973c --- /dev/null +++ b/.travis.yml @@ -0,0 +1,22 @@ +sudo: required +os: linux +dist: xenial +language: bash + +branches: + only: + - master + +before_install: + - curl -L https://github.com/holgern/travis-texlive/releases/download/2017-09-18_02/texlive.tar.xz | tar -JxC ~ + +install: + - PATH=$HOME/texlive/bin/x86_64-linux:$PATH + +script: + - make allclean + - make fullthesis + - make clean + - make thesis + - make clean + - make diff --git a/Makefile b/Makefile index f0ae5c8..adbe097 100644 --- a/Makefile +++ b/Makefile @@ -77,8 +77,10 @@ nomtest: make nomupdate; \ fi \ fi - # removing thesis.nlo-diff if it exists - test -f $(THESIS).nlo-diff && rm $(THESIS).nlo-diff + @# removing $(THESIS).nlo-diff if it exists + @if test -f $(THESIS).nlo-diff; then \ + rm $(THESIS).nlo-diff; \ + fi nomupdate:index run @cp -p ${THESIS}.nlo ${THESIS}.nlo-old @@ -110,15 +112,14 @@ texcount: @echo "and pdftops ... ps2ascii: " pdftops ${THESIS}.pdf; ps2ascii ${THESIS}.ps | wc -w +search: + @echo "searching all texfiles for $(SEARCH):" + @find . -name "*.tex" | xargs grep -i --color=auto $(SEARCH) + clean: - @-rm *.aux *.log *.blg *.bbl *.lof *.lot *.toc *.fff *.out *.ps *nls *ilg *.nlo *nlo-old *~ + @-rm *.aux *.log *.blg *.bbl *.lof *.lot *.toc *.out *nls *ilg *.nlo *nlo-old allclean: clean $(CLEANDIRS) $(CLEANDIRS): @echo "cleaning directory $(@:clean-%=%):" @$(MAKE) -C $(@:clean-%=%) allclean - -search: - @echo "searching all texfiles for $(SEARCH):" - @find . -name "*.tex" | xargs grep -i --color=auto $(SEARCH) - diff --git a/README.md b/README.md index 6676313..87354c7 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,9 @@ version + + travis + license