mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 18:11:28 +01:00
ab620c5068
Adds two new environment variables TEST_GROUP_COUNT and TEST_GROUP to split the integration tests into groups and run only a selected group. This allows us to increase the TEST_GROUP_COUNT and add a new TEST_GROUP to avoid bumping up against the time limit when running in valgrind. Signed-off-by: Christian Decker <decker.christian@gmail.com>
26 lines
1.3 KiB
YAML
26 lines
1.3 KiB
YAML
language: c
|
|
dist: trusty
|
|
sudo: true
|
|
|
|
notifications:
|
|
email: false
|
|
|
|
env:
|
|
- NO_VALGRIND=1 ARCH=32 DEVELOPER=1 COMPILER=gcc
|
|
- NO_VALGRIND=1 ARCH=64 DEVELOPER=1 COMPILER=gcc
|
|
- NO_VALGRIND=0 ARCH=64 DEVELOPER=0 COMPILER=gcc
|
|
- NO_VALGRIND=1 ARCH=64 DEVELOPER=1 COMPILER=clang
|
|
- NO_VALGRIND=0 ARCH=64 DEVELOPER=1 COMPILER=gcc TEST_GROUP=1 TEST_GROUP_COUNT=3
|
|
- NO_VALGRIND=0 ARCH=64 DEVELOPER=1 COMPILER=gcc TEST_GROUP=2 TEST_GROUP_COUNT=3
|
|
- NO_VALGRIND=0 ARCH=64 DEVELOPER=1 COMPILER=gcc TEST_GROUP=3 TEST_GROUP_COUNT=3
|
|
|
|
# Trusty (aka 14.04) is way way too old, so run in docker...
|
|
script:
|
|
- docker pull cdecker/lightning-ci:${ARCH}bit | tee
|
|
- env | grep -E '^[A-Z_]+\=' | tee /tmp/envlist
|
|
- docker run --rm=true -v "${TRAVIS_BUILD_DIR}":/build -t cdecker/lightning-ci:${ARCH}bit make -j3 CC=${COMPILER} DEVELOPER=${DEVELOPER}
|
|
- docker run --rm=true --env-file=/tmp/envlist -v "${TRAVIS_BUILD_DIR}":/build -t cdecker/lightning-ci:${ARCH}bit make CC=${COMPILER} check DEVELOPER=${DEVELOPER}
|
|
# - git clone https://github.com/lightningnetwork/lightning-rfc.git
|
|
# - docker run --rm=true -v "${TRAVIS_BUILD_DIR}":/build -t cdecker/lightning-ci:${ARCH}bit make check-source BOLTDIR=lightning-rfc
|
|
- docker run --rm=true -v "${TRAVIS_BUILD_DIR}":/build -t cdecker/lightning-ci:${ARCH}bit make check-source BOLTDIR=none
|