|
| 1 | +sudo: required |
| 2 | +dist: trusty |
| 3 | +os: linux |
| 4 | +language: minimal |
| 5 | +cache: |
| 6 | + ccache: true |
| 7 | + directories: |
| 8 | + - depends/built |
| 9 | + - depends/sdk-sources |
| 10 | + - $HOME/.ccache |
| 11 | +stages: |
| 12 | + - lint |
| 13 | + - test |
| 14 | +env: |
| 15 | + global: |
| 16 | + - MAKEJOBS=-j3 |
| 17 | + - RUN_UNIT_TESTS=true |
| 18 | + - RUN_FUNCTIONAL_TESTS=false # Not Yet Implemented |
| 19 | + - RUN_BENCH=false # Set to true for any one job that has debug enabled, to quickly check bench is not crashing or hitting assertions |
| 20 | + - DOCKER_NAME_TAG=ubuntu:18.04 |
| 21 | + - BOOST_TEST_RANDOM=1$TRAVIS_BUILD_ID |
| 22 | + - CCACHE_SIZE=100M |
| 23 | + - CCACHE_TEMPDIR=/tmp/.ccache-temp |
| 24 | + - CCACHE_COMPRESS=1 |
| 25 | + - CCACHE_DIR=$HOME/.ccache |
| 26 | + - BASE_OUTDIR=$TRAVIS_BUILD_DIR/out |
| 27 | + - SDK_URL=https://bitcoincore.org/depends-sources/sdks |
| 28 | + - WINEDEBUG=fixme-all |
| 29 | + - DOCKER_PACKAGES="build-essential libtool autotools-dev automake pkg-config bsdmainutils curl git ca-certificates ccache" |
| 30 | + |
| 31 | +before_install: |
| 32 | + - set -o errexit; source .travis/test_03_before_install.sh |
| 33 | +install: |
| 34 | + - set -o errexit; source .travis/test_04_install.sh |
| 35 | +before_script: |
| 36 | + - set -o errexit; source .travis/test_05_before_script.sh |
| 37 | +script: |
| 38 | + - set -o errexit; source .travis/test_06_script.sh |
| 39 | +after_script: |
| 40 | + - echo $TRAVIS_COMMIT_RANGE |
| 41 | + - echo $TRAVIS_COMMIT_LOG |
| 42 | + |
| 43 | +jobs: |
| 44 | + include: |
| 45 | +# lint stage |
| 46 | + - stage: lint |
| 47 | + env: |
| 48 | + sudo: false |
| 49 | + cache: false |
| 50 | + language: python |
| 51 | + python: '3.6' |
| 52 | + install: |
| 53 | + - set -o errexit; source .travis/lint_04_install.sh |
| 54 | + before_script: |
| 55 | + - set -o errexit; source .travis/lint_05_before_script.sh |
| 56 | + script: |
| 57 | + - set -o errexit; source .travis/lint_06_script.sh |
| 58 | +# ARM |
| 59 | + - stage: test |
| 60 | + env: >- |
| 61 | + HOST=arm-linux-gnueabihf |
| 62 | + PACKAGES="python3 g++-arm-linux-gnueabihf" |
| 63 | + DEP_OPTS="NO_QT=1" |
| 64 | + RUN_UNIT_TESTS=false |
| 65 | + RUN_FUNCTIONAL_TESTS=false |
| 66 | + GOAL="install" |
| 67 | + # -Wno-psabi is to disable ABI warnings: "note: parameter passing for argument of type ... changed in GCC 7.1" |
| 68 | + # This could be removed once the ABI change warning does not show up by default |
| 69 | + BITCOIN_CONFIG="--enable-glibc-back-compat --enable-reduce-exports CXXFLAGS=-Wno-psabi" |
| 70 | +# AArch64 |
| 71 | + - stage: test |
| 72 | + env: >- |
| 73 | + HOST=aarch64-linux-gnu |
| 74 | + PACKAGES="python3 g++-aarch64-linux-gnu" |
| 75 | + DEP_OPTS="NO_QT=1" |
| 76 | + RUN_UNIT_TESTS=false |
| 77 | + RUN_FUNCTIONAL_TESTS=false |
| 78 | + GOAL="install" |
| 79 | + BITCOIN_CONFIG="--enable-glibc-back-compat --enable-reduce-exports" |
| 80 | +# Win32 |
| 81 | + - stage: test |
| 82 | + env: >- |
| 83 | + HOST=i686-w64-mingw32 |
| 84 | + DPKG_ADD_ARCH="i386" |
| 85 | + DEP_OPTS="NO_QT=1" |
| 86 | + PACKAGES="python3 nsis g++-mingw-w64-i686 wine-binfmt wine32" |
| 87 | + GOAL="install" |
| 88 | + BITCOIN_CONFIG="--enable-reduce-exports" |
| 89 | +# Win64 |
| 90 | + - stage: test |
| 91 | + env: >- |
| 92 | + HOST=x86_64-w64-mingw32 |
| 93 | + DEP_OPTS="NO_QT=1" |
| 94 | + PACKAGES="python3 nsis g++-mingw-w64-x86-64 wine-binfmt wine64" |
| 95 | + GOAL="install" |
| 96 | + BITCOIN_CONFIG="--enable-reduce-exports" |
| 97 | +# 32-bit + dash |
| 98 | + - stage: test |
| 99 | + env: >- |
| 100 | + HOST=i686-pc-linux-gnu |
| 101 | + PACKAGES="g++-multilib python3-zmq" |
| 102 | + DEP_OPTS="NO_QT=1" |
| 103 | + GOAL="install" |
| 104 | + BITCOIN_CONFIG="--enable-zmq --enable-glibc-back-compat --enable-reduce-exports LDFLAGS=-static-libstdc++" |
| 105 | + CONFIG_SHELL="/bin/dash" |
| 106 | +# x86_64 Linux (uses qt5 dev package instead of depends Qt to speed up build and avoid timeout) |
| 107 | + - stage: test |
| 108 | + env: >- |
| 109 | + HOST=x86_64-unknown-linux-gnu |
| 110 | + PACKAGES="python3-zmq qtbase5-dev qttools5-dev-tools protobuf-compiler libdbus-1-dev libharfbuzz-dev libprotobuf-dev" |
| 111 | + DEP_OPTS="NO_QT=1 NO_UPNP=1 DEBUG=1 ALLOW_HOST_PACKAGES=1" |
| 112 | + GOAL="install" |
| 113 | + BITCOIN_CONFIG="--enable-zmq --with-gui=qt5 --enable-glibc-back-compat --enable-reduce-exports CPPFLAGS=-DDEBUG_LOCKORDER" |
| 114 | +# x86_64 Linux (no depends, only system libs) |
| 115 | + - stage: test |
| 116 | + env: >- |
| 117 | + HOST=x86_64-unknown-linux-gnu |
| 118 | + PACKAGES="python3-zmq qtbase5-dev qttools5-dev-tools libssl1.0-dev libevent-dev bsdmainutils libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-program-options-dev libboost-test-dev libboost-thread-dev libdb5.3++-dev libminiupnpc-dev libzmq3-dev libprotobuf-dev protobuf-compiler libqrencode-dev libgmp-dev" |
| 119 | + NO_DEPENDS=1 |
| 120 | + GOAL="install" |
| 121 | + BITCOIN_CONFIG="--enable-zmq --with-incompatible-bdb --enable-glibc-back-compat --enable-reduce-exports --with-gui=qt5 CPPFLAGS=-DDEBUG_LOCKORDER" |
| 122 | +# x86_64 Linux (sanitizers) |
| 123 | +# - stage: test |
| 124 | +# env: >- |
| 125 | +# HOST=x86_64-unknown-linux-gnu |
| 126 | +# PACKAGES="clang python3-zmq qtbase5-dev qttools5-dev-tools libssl1.0-dev libevent-dev bsdmainutils libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-program-options-dev libboost-test-dev libboost-thread-dev libdb5.3++-dev libminiupnpc-dev libzmq3-dev libprotobuf-dev protobuf-compiler libqrencode-dev libgmp-dev" |
| 127 | +# NO_DEPENDS=1 |
| 128 | +# RUN_BENCH=true |
| 129 | +# RUN_FUNCTIONAL_TESTS=false # Disabled for now, can be combined with the other x86_64 linux NO_DEPENDS job when functional tests pass the sanitizers |
| 130 | +# GOAL="install" |
| 131 | +# BITCOIN_CONFIG="--enable-zmq --with-incompatible-bdb --enable-glibc-back-compat --enable-reduce-exports --with-gui=qt5 CPPFLAGS=-DDEBUG_LOCKORDER --with-sanitizers=undefined CC=clang CXX=clang++" |
| 132 | +# x86_64 Linux, No wallet |
| 133 | +# - stage: test |
| 134 | +# env: >- |
| 135 | +# HOST=x86_64-unknown-linux-gnu |
| 136 | +# PACKAGES="python3" |
| 137 | +# DEP_OPTS="NO_WALLET=1" |
| 138 | +# GOAL="install" |
| 139 | +# BITCOIN_CONFIG="--enable-glibc-back-compat --enable-reduce-exports" |
| 140 | +# Cross-Mac |
| 141 | + - stage: test |
| 142 | + env: >- |
| 143 | + HOST=x86_64-apple-darwin14 |
| 144 | + PACKAGES="cmake imagemagick libcap-dev librsvg2-bin libz-dev libbz2-dev libtiff-tools python-dev python3-setuptools-git" |
| 145 | + OSX_SDK=10.11 |
| 146 | + RUN_UNIT_TESTS=false |
| 147 | + RUN_FUNCTIONAL_TESTS=false |
| 148 | + GOAL="all deploy" |
| 149 | + BITCOIN_CONFIG="--enable-gui --enable-reduce-exports --enable-werror" |
0 commit comments