/ .github / ci-test-each-commit-exec.sh
ci-test-each-commit-exec.sh
 1  #!/usr/bin/env bash
 2  #
 3  # Copyright (c) The Bitcoin Core developers
 4  # Distributed under the MIT software license, see the accompanying
 5  # file COPYING or http://www.opensource.org/licenses/mit-license.php.
 6  
 7  export LC_ALL=C.UTF-8
 8  
 9  set -o errexit -o pipefail -o xtrace
10  
11  
12  echo "Running test-one-commit on $( git log -1 )"
13  
14  # Use clang++, because it is a bit faster and uses less memory than g++
15  CC=clang CXX=clang++ cmake -B build -DWERROR=ON -DWITH_ZMQ=ON -DBUILD_GUI=ON -DBUILD_BENCH=ON -DBUILD_FUZZ_BINARY=ON -DWITH_BDB=ON -DWITH_USDT=ON -DCMAKE_CXX_FLAGS='-Wno-error=unused-member-function'
16  
17  cmake --build build -j "$( nproc )" && ctest --output-on-failure --stop-on-failure --test-dir build -j "$( nproc )"
18  
19  ./build/test/functional/test_runner.py -j $(( $(nproc) * 2 )) --combinedlogslen=99999999