forked from ElementsProject/lightning
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
239 changed files
with
8,148 additions
and
3,925 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,42 @@ | ||
language: c | ||
dist: trusty | ||
sudo: true | ||
dist: xenial | ||
sudo: false | ||
|
||
notifications: | ||
email: false | ||
|
||
addons: | ||
apt: | ||
packages: | ||
- python3-pip | ||
- libsqlite3-dev | ||
- shellcheck | ||
- cppcheck | ||
- valgrind | ||
- libomp-dev | ||
- gcc-4.8 | ||
|
||
env: | ||
- ARCH=32 SOURCE_CHECK_ONLY=true | ||
- ARCH=64 SOURCE_CHECK_ONLY=true CDEBUGFLAGS="-std=gnu11 -g -fstack-protector -O3 -flto" LDFLAGS="-O3 -flto" | ||
- VALGRIND=0 ARCH=32 DEVELOPER=1 COMPILER=gcc TEST_GROUP=1 TEST_GROUP_COUNT=2 SOURCE_CHECK_ONLY=false | ||
- VALGRIND=0 ARCH=32 DEVELOPER=1 COMPILER=gcc TEST_GROUP=2 TEST_GROUP_COUNT=2 SOURCE_CHECK_ONLY=false | ||
# - VALGRIND=0 ARCH=32 DEVELOPER=1 COMPILER=gcc TEST_GROUP=1 TEST_GROUP_COUNT=2 SOURCE_CHECK_ONLY=false | ||
# - VALGRIND=0 ARCH=32 DEVELOPER=1 COMPILER=gcc TEST_GROUP=2 TEST_GROUP_COUNT=2 SOURCE_CHECK_ONLY=false | ||
- VALGRIND=0 ARCH=64 DEVELOPER=1 COMPILER=gcc SOURCE_CHECK_ONLY=false | ||
- VALGRIND=0 ARCH=64 DEVELOPER=0 COMPILER=gcc COMPAT=0 SOURCE_CHECK_ONLY=false | ||
- VALGRIND=1 ARCH=64 DEVELOPER=0 COMPILER=gcc TEST_GROUP=1 TEST_GROUP_COUNT=3 SOURCE_CHECK_ONLY=false | ||
- VALGRIND=1 ARCH=64 DEVELOPER=0 COMPILER=gcc TEST_GROUP=2 TEST_GROUP_COUNT=3 SOURCE_CHECK_ONLY=false | ||
- VALGRIND=1 ARCH=64 DEVELOPER=0 COMPILER=gcc TEST_GROUP=3 TEST_GROUP_COUNT=3 SOURCE_CHECK_ONLY=false | ||
- VALGRIND=0 ARCH=64 DEVELOPER=1 COMPILER=clang SOURCE_CHECK_ONLY=false | ||
- VALGRIND=0 ARCH=64 DEVELOPER=1 COMPILER=gcc-4.8 SOURCE_CHECK_ONLY=false | ||
- VALGRIND=1 ARCH=64 DEVELOPER=1 COMPILER=gcc TEST_GROUP=1 TEST_GROUP_COUNT=6 SOURCE_CHECK_ONLY=false | ||
- VALGRIND=1 ARCH=64 DEVELOPER=1 COMPILER=gcc TEST_GROUP=2 TEST_GROUP_COUNT=6 SOURCE_CHECK_ONLY=false | ||
- VALGRIND=1 ARCH=64 DEVELOPER=1 COMPILER=gcc TEST_GROUP=3 TEST_GROUP_COUNT=6 SOURCE_CHECK_ONLY=false | ||
- VALGRIND=1 ARCH=64 DEVELOPER=1 COMPILER=gcc TEST_GROUP=4 TEST_GROUP_COUNT=6 SOURCE_CHECK_ONLY=false | ||
- VALGRIND=1 ARCH=64 DEVELOPER=1 COMPILER=gcc TEST_GROUP=5 TEST_GROUP_COUNT=6 SOURCE_CHECK_ONLY=false | ||
- VALGRIND=1 ARCH=64 DEVELOPER=1 COMPILER=gcc TEST_GROUP=6 TEST_GROUP_COUNT=6 SOURCE_CHECK_ONLY=false | ||
cache: | ||
directories: | ||
- dependencies | ||
- external | ||
|
||
# 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_]+\=' | grep -vi travis | tee /tmp/envlist | ||
- echo SLOW_MACHINE=1 >> /tmp/envlist | ||
- docker run --rm=true --env-file=/tmp/envlist -v "${TRAVIS_BUILD_DIR}":/build -t cdecker/lightning-ci:${ARCH}bit ./configure CC=${COMPILER:-gcc} | ||
- $SOURCE_CHECK_ONLY || docker run --rm=true --env-file=/tmp/envlist -v "${TRAVIS_BUILD_DIR}":/build -t cdecker/lightning-ci:${ARCH}bit make -j3 | ||
- $SOURCE_CHECK_ONLY || docker run --rm=true --env-file=/tmp/envlist -v "${TRAVIS_BUILD_DIR}":/build -t cdecker/lightning-ci:${ARCH}bit make check | ||
- (! $SOURCE_CHECK_ONLY) || git clone https://github.com/lightningnetwork/lightning-rfc.git | ||
- (! $SOURCE_CHECK_ONLY) || docker run --rm=true -v "${TRAVIS_BUILD_DIR}":/build -t cdecker/lightning-ci:${ARCH}bit make clean | ||
- (! $SOURCE_CHECK_ONLY) || docker run --rm=true -v "${TRAVIS_BUILD_DIR}":/build -t cdecker/lightning-ci:${ARCH}bit make check-source BOLTDIR=lightning-rfc | ||
.travis/build.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
#!/bin/bash -x | ||
set -e | ||
|
||
CWD=$(pwd) | ||
export SLOW_MACHINE=1 | ||
export CC=${COMPILER:-gcc} | ||
export DEVELOPER=${DEVELOPER:-1} | ||
export SOURCE_CHECK_ONLY=${SOURCE_CHECK_ONLY:-"false"} | ||
export COMPAT=${COMPAT:-1} | ||
export PATH=$CWD/dependencies/bin:"$HOME"/.local/bin:"$PATH" | ||
|
||
mkdir -p dependencies/bin || true | ||
|
||
# Download bitcoind and bitcoin-cli | ||
if [ ! -f dependencies/bin/bitcoind ]; then | ||
wget https://bitcoin.org/bin/bitcoin-core-0.17.1/bitcoin-0.17.1-x86_64-linux-gnu.tar.gz | ||
tar -xzf bitcoin-0.17.1-x86_64-linux-gnu.tar.gz | ||
mv bitcoin-0.17.1/bin/* dependencies/bin | ||
rm -rf bitcoin-0.17.1-x86_64-linux-gnu.tar.gz bitcoin-0.17.1 | ||
fi | ||
|
||
pyenv global 3.7 | ||
pip3 install --user --quiet -r tests/requirements.txt | ||
pip3 install --quiet \ | ||
pytest-test-groups==1.0.3 | ||
|
||
echo "Configuration which is going to be built:" | ||
echo -en 'travis_fold:start:script.1\\r' | ||
./configure CC="$CC" | ||
cat config.vars | ||
echo -en 'travis_fold:end:script.1\\r' | ||
|
||
if [ "$SOURCE_CHECK_ONLY" == "false" ]; then | ||
echo -en 'travis_fold:start:script.2\\r' | ||
make -j3 > /dev/null | ||
echo -en 'travis_fold:end:script.2\\r' | ||
|
||
echo -en 'travis_fold:start:script.3\\r' | ||
make check | ||
echo -en 'travis_fold:end:script.3\\r' | ||
else | ||
git clone https://github.com/lightningnetwork/lightning-rfc.git | ||
make check-source BOLTDIR=lightning-rfc | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.