From 1670ac4b7213925151db0de934e8a87cfdae9263 Mon Sep 17 00:00:00 2001 From: Frank Milthaler Date: Fri, 28 Jun 2019 13:20:13 +0100 Subject: [PATCH 1/6] Setting up automatic travis build --- .travis.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..b020231 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,23 @@ +sudo: required +os: linux +dist: xenial +language: bash + +branches: + only: + - master + - develop + +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 From 0851569037a0762b538d06191163e9ed7bef2fd2 Mon Sep 17 00:00:00 2001 From: Frank Milthaler Date: Fri, 28 Jun 2019 13:51:56 +0100 Subject: [PATCH 2/6] Fixing Makefile:nomtest, removing thesis.nlo-diff now works --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index f0ae5c8..b68dfc8 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 From 4e341c8c75f4528700f866c502487a22857e2f96 Mon Sep 17 00:00:00 2001 From: Frank Milthaler Date: Fri, 28 Jun 2019 14:13:01 +0100 Subject: [PATCH 3/6] Makefile: clean, only removing files that are created --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index b68dfc8..ef97a0f 100644 --- a/Makefile +++ b/Makefile @@ -113,7 +113,7 @@ texcount: pdftops ${THESIS}.pdf; ps2ascii ${THESIS}.ps | wc -w 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): From d25b472c29398d1f6433bc26b1a98728c3b5ff45 Mon Sep 17 00:00:00 2001 From: Frank Milthaler Date: Fri, 28 Jun 2019 14:13:23 +0100 Subject: [PATCH 4/6] Makefile: moving target "search" above "clean" --- Makefile | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index ef97a0f..adbe097 100644 --- a/Makefile +++ b/Makefile @@ -112,6 +112,10 @@ 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 *.out *nls *ilg *.nlo *nlo-old @@ -119,8 +123,3 @@ 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) - From a60d2582f91d2568307486f2f7060fd80effd8d6 Mon Sep 17 00:00:00 2001 From: Frank Milthaler Date: Fri, 28 Jun 2019 14:14:06 +0100 Subject: [PATCH 5/6] Triggering travis builds only on commits to master (and pull requests) --- .travis.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index b020231..0dc973c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,7 +6,6 @@ language: bash branches: only: - master - - develop before_install: - curl -L https://github.com/holgern/travis-texlive/releases/download/2017-09-18_02/texlive.tar.xz | tar -JxC ~ From 38918300e09289150186874968da66718f10f2e9 Mon Sep 17 00:00:00 2001 From: Frank Milthaler Date: Fri, 28 Jun 2019 14:26:06 +0100 Subject: [PATCH 6/6] Adding badge for travis status --- README.md | 3 +++ 1 file changed, 3 insertions(+) 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