mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-07 14:29:33 +01:00
bf3b77a947
I don't remember ever seeing a bug which only showed up in VALGRIND=1 with developer mode disabled, so don't test that, and spread out the other test more evenly. In addition, disable the worst-performing tests in DEVELOPER=0 mode. Here timings from my build machine: the worst 6 (- DEVELOPER=0 VALGRIND=0) with the same tests (+ DEVELOPER=1 VALGRIND=1) -452.42s call tests/test_pay.py::test_channel_spendable +87.69s call tests/test_pay.py::test_channel_spendable -335.66s call tests/test_gossip.py::test_gossip_store_compact_on_load +47.41s call tests/test_gossip.py::test_gossip_store_compact_on_load -332.07s call tests/test_connection.py::test_opening_tiny_channel +89.71s call tests/test_connection.py::test_opening_tiny_channel -331.97s call tests/test_pay.py::test_channel_spendable_large +56.23s call tests/test_pay.py::test_channel_spendable_large -305.28s call tests/test_invoices.py::test_invoice_routeboost +37.57s call tests/test_invoices.py::test_invoice_routeboost -284.28s call tests/test_plugin.py::test_htlc_accepted_hook_forward_restart +49.12s call tests/test_plugin.py::test_htlc_accepted_hook_forward_restart Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
36 lines
1.9 KiB
YAML
36 lines
1.9 KiB
YAML
language: c
|
|
dist: bionic
|
|
|
|
notifications:
|
|
email: false
|
|
|
|
before_install:
|
|
sudo apt-get install -y libsqlite3-dev cppcheck valgrind gcc-4.8
|
|
|
|
env:
|
|
- ARCH=64 SOURCE_CHECK_ONLY=true COPTFLAGS="-O3"
|
|
# - 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 TEST_GROUP=1 TEST_GROUP_COUNT=2 SOURCE_CHECK_ONLY=false
|
|
- VALGRIND=0 ARCH=64 DEVELOPER=0 COMPILER=gcc COMPAT=0 TEST_GROUP=2 TEST_GROUP_COUNT=2 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=0 COMPILER=gcc-4.8 SOURCE_CHECK_ONLY=true
|
|
- VALGRIND=1 ARCH=64 DEVELOPER=1 COMPILER=gcc TEST_GROUP=1 TEST_GROUP_COUNT=7 SOURCE_CHECK_ONLY=false
|
|
- VALGRIND=1 ARCH=64 DEVELOPER=1 COMPILER=gcc TEST_GROUP=2 TEST_GROUP_COUNT=7 SOURCE_CHECK_ONLY=false
|
|
- VALGRIND=1 ARCH=64 DEVELOPER=1 COMPILER=gcc TEST_GROUP=3 TEST_GROUP_COUNT=7 SOURCE_CHECK_ONLY=false
|
|
- VALGRIND=1 ARCH=64 DEVELOPER=1 COMPILER=gcc TEST_GROUP=4 TEST_GROUP_COUNT=7 SOURCE_CHECK_ONLY=false
|
|
- VALGRIND=1 ARCH=64 DEVELOPER=1 COMPILER=gcc TEST_GROUP=5 TEST_GROUP_COUNT=7 SOURCE_CHECK_ONLY=false
|
|
- VALGRIND=1 ARCH=64 DEVELOPER=1 COMPILER=gcc TEST_GROUP=6 TEST_GROUP_COUNT=7 SOURCE_CHECK_ONLY=false
|
|
- VALGRIND=1 ARCH=64 DEVELOPER=1 COMPILER=gcc TEST_GROUP=7 TEST_GROUP_COUNT=7 SOURCE_CHECK_ONLY=false
|
|
cache:
|
|
directories:
|
|
- dependencies
|
|
- external
|
|
|
|
script:
|
|
.travis/build.sh
|