-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
58 lines (47 loc) · 1.51 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
language: cpp
compiler:
- clang
- gcc
os:
- linux
- osx
sudo: true
env:
global:
- MAKEJOBS=-j3
- RUN_TESTS=true
- BASE_OUTDIR=$TRAVIS_BUILD_DIR/out
cache:
apt: true
addons:
apt:
packages:
- pkg-config
before_install:
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew update; fi
install:
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew install gettext; fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew install argp-standalone; fi
before_script:
- if [ -n "$USE_SHELL" ]; then export CONFIG_SHELL="$USE_SHELL"; fi
- test -n "$USE_SHELL" && eval '"$USE_SHELL" -c "./autogen.sh"' || ./autogen.sh
script:
- if [ -n "$RLPVALUE_CONFIG" ]; then unset CC; unset CXX; fi
- OUTDIR=$BASE_OUTDIR/$TRAVIS_PULL_REQUEST/$TRAVIS_JOB_NUMBER-$HOST
- RLPVALUE_CONFIG_ALL="--prefix=$TRAVIS_BUILD_DIR/depends/$HOST --bindir=$OUTDIR/bin --libdir=$OUTDIR/lib"
- ./configure --cache-file=config.cache $RLPVALUE_CONFIG_ALL $RLPVALUE_CONFIG || ( cat config.log && false)
- make -s $MAKEJOBS $GOAL || ( echo "Build failure. Verbose build follows." && make $GOAL ; false )
- export LD_LIBRARY_PATH=$TRAVIS_BUILD_DIR/depends/$HOST/lib
- if [ "$RUN_TESTS" = "true" ]; then make $MAKEJOBS distcheck; fi
#matrix:
# fast_finish: true
# include:
# - os: linux
# compiler: gcc
# env: RLPVALUE_CONFIG=--host=x86_64-w64-mingw32 RUN_TESTS=false
# addons:
# apt:
# packages:
# - g++-mingw-w64-x86-64
# - gcc-mingw-w64-x86-64
# - binutils-mingw-w64-x86-64