Skip to content

Commit

Permalink
Merge pull request #14 from fmilthaler/feature/travis
Browse files Browse the repository at this point in the history
Setting up automatic travis build
Closes #7
  • Loading branch information
fmilthaler authored Jun 28, 2019
2 parents d7a98f6 + 3891830 commit 3f0626b
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 8 deletions.
22 changes: 22 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -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
17 changes: 9 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)

3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
<a href="https://github.com/fmilthaler/Thesis-LaTeX-Template/releases/latest">
<img src="https://img.shields.io/badge/version-0.1-brightgreen.svg?style=popout" alt="version">
</a>
<a href="https://travis-ci.org/fmilthaler/Thesis-LaTeX-Template">
<img src="https://travis-ci.org/fmilthaler/Thesis-LaTeX-Template.svg?style=popout?branch=master" alt='travis'>
</a>
<a href="https://opensource.org/licenses/MIT">
<img src="https://img.shields.io/github/license/fmilthaler/Thesis-LaTeX-Template.svg?style=popout" alt="license">
</a>
Expand Down

0 comments on commit 3f0626b

Please sign in to comment.