Merge #11726: Cleanups + nit fixes for walletdir PR
[bitcoinplatinum.git] / src / univalue / .travis.yml
blob43a1ed362e7e54d33c28a30da803f89ee8219d26
1 language: cpp
3 compiler:
4   - clang
5   - gcc
7 os:
8   - linux
9   - osx
11 sudo: false
13 env:
14   global:
15     - MAKEJOBS=-j3
16     - RUN_TESTS=true
17     - BASE_OUTDIR=$TRAVIS_BUILD_DIR/out
19 cache:
20   apt: true
22 addons:
23   apt:
24     packages:
25       - pkg-config
27 before_script:
28   - if [ -n "$USE_SHELL" ]; then export CONFIG_SHELL="$USE_SHELL"; fi
29   - test -n "$USE_SHELL" && eval '"$USE_SHELL" -c "./autogen.sh"' || ./autogen.sh
31 script:
32   - if [ -n "$UNIVALUE_CONFIG" ]; then unset CC; unset CXX; fi
33   - OUTDIR=$BASE_OUTDIR/$TRAVIS_PULL_REQUEST/$TRAVIS_JOB_NUMBER-$HOST
34   - UNIVALUE_CONFIG_ALL="--prefix=$TRAVIS_BUILD_DIR/depends/$HOST --bindir=$OUTDIR/bin --libdir=$OUTDIR/lib"
35   - ./configure --cache-file=config.cache $UNIVALUE_CONFIG_ALL $UNIVALUE_CONFIG || ( cat config.log && false)
36   - make -s $MAKEJOBS $GOAL || ( echo "Build failure. Verbose build follows." && make $GOAL ; false )
37   - export LD_LIBRARY_PATH=$TRAVIS_BUILD_DIR/depends/$HOST/lib
38   - if [ "$RUN_TESTS" = "true" ]; then make $MAKEJOBS distcheck; fi
40 matrix:
41   fast_finish: true
42   include:
43     - os: linux
44       compiler: gcc
45       env: UNIVALUE_CONFIG=--host=x86_64-w64-mingw32 RUN_TESTS=false
46       addons:
47         apt:
48           packages:
49             - g++-mingw-w64-x86-64
50             - gcc-mingw-w64-x86-64
51             - binutils-mingw-w64-x86-64