Add comments to .travis.yml
This commit is contained in:
parent
ba351ac3b2
commit
bf3d72f48f
16
.travis.yml
16
.travis.yml
@ -1,7 +1,9 @@
|
|||||||
|
# basic travis setup for a simple Ubuntu trusty container
|
||||||
sudo: true
|
sudo: true
|
||||||
dist: trusty
|
dist: trusty
|
||||||
language: bash
|
language: bash
|
||||||
|
|
||||||
|
# restrict build to certain branches
|
||||||
general:
|
general:
|
||||||
branches:
|
branches:
|
||||||
only:
|
only:
|
||||||
@ -10,14 +12,28 @@ general:
|
|||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- PROJECTDIR=$(pwd)
|
- PROJECTDIR=$(pwd)
|
||||||
|
# this line below downloads tex-live distribution to the container
|
||||||
|
# it uses a German Mirror from the Friedrich-Alexander University
|
||||||
|
# we use a custom tex-live distribution because the trusty repo does not
|
||||||
|
# contain a texlive version that supports fontawesome, thus failing the builds
|
||||||
|
# see https://tug.org/
|
||||||
|
# see https://ctan.org/mirrors
|
||||||
- cd /tmp && wget http://ftp.fau.de/ctan/systems/texlive/tlnet/install-tl-unx.tar.gz
|
- cd /tmp && wget http://ftp.fau.de/ctan/systems/texlive/tlnet/install-tl-unx.tar.gz
|
||||||
|
# unpacking the texlive unix distribution
|
||||||
|
# and prepare for building
|
||||||
- tar -xvzf install-tl-unx.tar.gz
|
- tar -xvzf install-tl-unx.tar.gz
|
||||||
- cd install-tl-*
|
- cd install-tl-*
|
||||||
- chmod +x install-tl
|
- chmod +x install-tl
|
||||||
|
# we install it using a given texlive.profile
|
||||||
|
# (see https://github.com/jankapunkt/latexcv/blob/master/texlive.profile)
|
||||||
|
# and add it's executable to $PATH
|
||||||
|
# if everything was successful, we can enter the pdflatex command
|
||||||
|
# without any errors
|
||||||
- sudo ./install-tl --profile=$PROJECTDIR/texlive.profile
|
- sudo ./install-tl --profile=$PROJECTDIR/texlive.profile
|
||||||
- PATH=/usr/local/texlive/2017/bin/x86_64-linux:$PATH
|
- PATH=/usr/local/texlive/2017/bin/x86_64-linux:$PATH
|
||||||
- pdflatex -v
|
- pdflatex -v
|
||||||
- cd $PROJECTDIR
|
- cd $PROJECTDIR
|
||||||
|
|
||||||
|
# finally run the test scripts from https://github.com/jankapunkt/latexcv/tree/master/tests
|
||||||
script:
|
script:
|
||||||
- bash tests/testall.sh
|
- bash tests/testall.sh
|
||||||
|
Loading…
x
Reference in New Issue
Block a user