-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
65 lines (59 loc) · 1.89 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# Configure TravisCI (https://travis-ci.org) tests
language: generic
# Test on both Linux and OSX
# Disabled OSX builds because I was going crazy getting the OSX build of Stow to return correctly.
# It seems to build right but returns an error, which I can not reproduce locally:
#
# > Output written on stow.pdf (40 pages, 274687 bytes).
# > Transcript written on stow.log.
# > make: *** [stow-build] Error 2
# > The command "# Make sure 'tex' is in the path for building the Stow documentation on OSX
# > if [ $TRAVIS_OS_NAME = osx ]; then export PATH=/Library/TeX/texbin/:$PATH; fi
# > # Perform install of packages
# > cd ${TRAVIS_BUILD_DIR}/..
# > make -f .gbpEnv/Makefile
# > " failed and exited with 2 during .
# > Your build has been stopped.
#
matrix:
include:
- os: linux
# - os: osx
# osx_image: xcode11
# Install build and test dependancies
sudo: required
addons:
apt:
packages:
# Needed to build Stow documentation
- texlive-latex-recommended
- texlive-fonts-recommended
- texinfo
homebrew:
packages:
casks:
# Needed to build Stow documentation
- mactex
#update: true
# Make sure the home directory is set to
# be the TravisCI project directory
env:
GBPENV_TEST=1
HOME=${TRAVIS_BUILD_DIR}/../
GBP_HOME=${TRAVIS_BUILD_DIR}/../
# Perform environment install
# * n.b.: We are in the repo dir at this point *
before_script: |
# Make sure 'tex' is in the path for building the Stow documentation on OSX
if [ $TRAVIS_OS_NAME = osx ]; then export PATH=/Library/TeX/texbin/:$PATH; fi
# Perform install of packages
cd ${TRAVIS_BUILD_DIR}/..
make -f .gbpEnv/Makefile
# Run tests (via Makefile) using assert.sh
script: |
cd ${TRAVIS_BUILD_DIR}/..
make -f .test/Makefile tests
# Add the following lines to generate Codecov report
after_success: |
cd ${TRAVIS_BUILD_DIR}/..
make -f .test/Makefile kcov