File tree Expand file tree Collapse file tree 2 files changed +28
-2
lines changed Expand file tree Collapse file tree 2 files changed +28
-2
lines changed Original file line number Diff line number Diff line change
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
+ git config user.email " ci@example.com"
15
+ git config user.name " CI"
16
+ git merge --no-commit origin/master
17
+
18
+ # Use clang++, because it is a bit faster and uses less memory than g++
19
+ 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'
20
+
21
+ cmake --build build -j " $( nproc ) " && ctest --output-on-failure --stop-on-failure --test-dir build -j " $( nproc ) "
22
+
23
+ ./build/test/functional/test_runner.py -j $(( $(nproc) * 2 )) --combinedlogslen=99999999
24
+
25
+ git merge --abort
Original file line number Diff line number Diff line change @@ -71,14 +71,15 @@ jobs:
71
71
EXCLUDE_MERGE_BASE_ANCESTORS=^${MERGE_BASE}^@
72
72
fi
73
73
echo "TEST_BASE=$(git rev-list -n$((${{ env.MAX_COUNT }} + 1)) --reverse HEAD $EXCLUDE_MERGE_BASE_ANCESTORS | head -1)" >> "$GITHUB_ENV"
74
+ - run : |
75
+ git fetch origin master
74
76
- run : |
75
77
sudo apt-get update
76
78
sudo apt-get install clang ccache build-essential cmake pkgconf python3-zmq libevent-dev libboost-dev libsqlite3-dev libdb++-dev systemtap-sdt-dev libzmq3-dev qtbase5-dev qttools5-dev qttools5-dev-tools qtwayland5 libqrencode-dev -y
77
79
- name : Compile and run tests
78
80
run : |
79
81
# Run tests on commits after the last merge commit and before the PR head commit
80
- # Use clang++, because it is a bit faster and uses less memory than g++
81
- git rebase --exec "echo Running test-one-commit on \$( git log -1 ) && 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' && cmake --build build -j $(nproc) && ctest --output-on-failure --stop-on-failure --test-dir build -j $(nproc) && ./build/test/functional/test_runner.py -j $(( $(nproc) * 2 )) --combinedlogslen=99999999" ${{ env.TEST_BASE }}
82
+ git rebase --exec "./.github/ci-test-each-commit-exec.sh" ${{ env.TEST_BASE }}
82
83
83
84
macos-native-arm64 :
84
85
name : ${{ matrix.job-name }}
You can’t perform that action at this time.
0 commit comments