Skip to content

Commit e2bab2a

Browse files
committed
multiprocess: add multiprocess travis configuration
1 parent 603fd6a commit e2bab2a

File tree

4 files changed

+22
-1
lines changed

4 files changed

+22
-1
lines changed

.travis.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,12 @@ jobs:
127127
env: >-
128128
FILE_ENV="./ci/test/00_setup_env_native_fuzz.sh"
129129
130+
- stage: test
131+
name: 'x86_64 Linux [GOAL: install] [bionic] [multiprocess]'
132+
if: type != pull_request OR commit_message =~ /depends:|multiprocess:/ # Skip on non-depends, non-multiprocess PRs
133+
env: >-
134+
FILE_ENV="./ci/test/00_setup_env_native_multiprocess.sh"
135+
130136
- stage: test
131137
name: 'x86_64 Linux [GOAL: install] [bionic] [no wallet]'
132138
env: >-

ci/test/00_setup_env.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ export USE_BUSY_BOX=${USE_BUSY_BOX:-false}
3434
export RUN_UNIT_TESTS=${RUN_UNIT_TESTS:-true}
3535
export RUN_FUNCTIONAL_TESTS=${RUN_FUNCTIONAL_TESTS:-true}
3636
export TEST_PREVIOUS_RELEASES=${TEST_PREVIOUS_RELEASES:-false}
37+
export TEST_RUNNER_ENV=${TEST_RUNNER_ENV:-}
3738
export RUN_FUZZ_TESTS=${RUN_FUZZ_TESTS:-false}
3839
export CONTAINER_NAME=${CONTAINER_NAME:-ci_unnamed}
3940
export DOCKER_NAME_TAG=${DOCKER_NAME_TAG:-ubuntu:18.04}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/usr/bin/env bash
2+
#
3+
# Copyright (c) 2020 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+
export CONTAINER_NAME=ci_native_multiprocess
10+
export PACKAGES="cmake python3"
11+
export DEP_OPTS="MULTIPROCESS=1"
12+
export GOAL="install"
13+
export BITCOIN_CONFIG=""
14+
export TEST_RUNNER_ENV="BITCOIND=bitcoin-node"

ci/test/06_script_b.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ fi
3737

3838
if [ "$RUN_FUNCTIONAL_TESTS" = "true" ]; then
3939
BEGIN_FOLD functional-tests
40-
DOCKER_EXEC LD_LIBRARY_PATH=$DEPENDS_DIR/$HOST/lib test/functional/test_runner.py --ci $MAKEJOBS --tmpdirprefix "${BASE_SCRATCH_DIR}/test_runner/" --ansi --combinedlogslen=4000 ${TEST_RUNNER_EXTRA} --quiet --failfast
40+
DOCKER_EXEC LD_LIBRARY_PATH=$DEPENDS_DIR/$HOST/lib ${TEST_RUNNER_ENV} test/functional/test_runner.py --ci $MAKEJOBS --tmpdirprefix "${BASE_SCRATCH_DIR}/test_runner/" --ansi --combinedlogslen=4000 ${TEST_RUNNER_EXTRA} --quiet --failfast
4141
END_FOLD
4242
fi
4343

0 commit comments

Comments
 (0)