mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-06-02 23:42:33 +02:00
ci: Disable functional tests on forked repos to avoid timeouts for macOS
This commit is contained in:
parent
37485baa27
commit
2d747428e2
@ -47,7 +47,7 @@ script:
|
|||||||
- if [ $SECONDS -gt 1200 ]; then export CONTINUE=0; fi # Likely the depends build took very long
|
- if [ $SECONDS -gt 1200 ]; then export CONTINUE=0; fi # Likely the depends build took very long
|
||||||
- if [ $TRAVIS_REPO_SLUG = "bitcoin/bitcoin" ]; then export CONTINUE=1; fi # continue on repos with extended build time (90 minutes)
|
- if [ $TRAVIS_REPO_SLUG = "bitcoin/bitcoin" ]; then export CONTINUE=1; fi # continue on repos with extended build time (90 minutes)
|
||||||
- if [ $CONTINUE = "1" ]; then set -o errexit; source ./ci/test/06_script_a.sh; else set +o errexit; echo "$CACHE_ERR_MSG"; false; fi
|
- if [ $CONTINUE = "1" ]; then set -o errexit; source ./ci/test/06_script_a.sh; else set +o errexit; echo "$CACHE_ERR_MSG"; false; fi
|
||||||
- if [ $SECONDS -gt 2000 ]; then export CONTINUE=0; fi # Likely the build took very long; The tests take about 1000s, so we should abort if we have less than 50*60-1000=2000s left
|
- if [[ $SECONDS -gt 50*60-$EXPECTED_TESTS_DURATION_IN_SECONDS ]]; then export CONTINUE=0; fi
|
||||||
- if [ $TRAVIS_REPO_SLUG = "bitcoin/bitcoin" ]; then export CONTINUE=1; fi # continue on repos with extended build time (90 minutes)
|
- if [ $TRAVIS_REPO_SLUG = "bitcoin/bitcoin" ]; then export CONTINUE=1; fi # continue on repos with extended build time (90 minutes)
|
||||||
- if [ $CONTINUE = "1" ]; then set -o errexit; source ./ci/test/06_script_b.sh; else set +o errexit; echo "$CACHE_ERR_MSG"; false; fi
|
- if [ $CONTINUE = "1" ]; then set -o errexit; source ./ci/test/06_script_b.sh; else set +o errexit; echo "$CACHE_ERR_MSG"; false; fi
|
||||||
after_script:
|
after_script:
|
||||||
|
@ -31,11 +31,14 @@ export BASE_SCRATCH_DIR=${BASE_SCRATCH_DIR:-$BASE_ROOT_DIR/ci/scratch}
|
|||||||
export HOST=${HOST:-$("$BASE_ROOT_DIR/depends/config.guess")}
|
export HOST=${HOST:-$("$BASE_ROOT_DIR/depends/config.guess")}
|
||||||
# Whether to prefer BusyBox over GNU utilities
|
# Whether to prefer BusyBox over GNU utilities
|
||||||
export USE_BUSY_BOX=${USE_BUSY_BOX:-false}
|
export USE_BUSY_BOX=${USE_BUSY_BOX:-false}
|
||||||
|
|
||||||
export RUN_UNIT_TESTS=${RUN_UNIT_TESTS:-true}
|
export RUN_UNIT_TESTS=${RUN_UNIT_TESTS:-true}
|
||||||
export RUN_FUNCTIONAL_TESTS=${RUN_FUNCTIONAL_TESTS:-true}
|
export RUN_FUNCTIONAL_TESTS=${RUN_FUNCTIONAL_TESTS:-true}
|
||||||
export RUN_SECURITY_TESTS=${RUN_SECURITY_TESTS:-false}
|
export RUN_SECURITY_TESTS=${RUN_SECURITY_TESTS:-false}
|
||||||
export TEST_RUNNER_ENV=${TEST_RUNNER_ENV:-}
|
export TEST_RUNNER_ENV=${TEST_RUNNER_ENV:-}
|
||||||
export RUN_FUZZ_TESTS=${RUN_FUZZ_TESTS:-false}
|
export RUN_FUZZ_TESTS=${RUN_FUZZ_TESTS:-false}
|
||||||
|
export EXPECTED_TESTS_DURATION_IN_SECONDS=${EXPECTED_TESTS_DURATION_IN_SECONDS:-1000}
|
||||||
|
|
||||||
export CONTAINER_NAME=${CONTAINER_NAME:-ci_unnamed}
|
export CONTAINER_NAME=${CONTAINER_NAME:-ci_unnamed}
|
||||||
export DOCKER_NAME_TAG=${DOCKER_NAME_TAG:-ubuntu:18.04}
|
export DOCKER_NAME_TAG=${DOCKER_NAME_TAG:-ubuntu:18.04}
|
||||||
# Randomize test order.
|
# Randomize test order.
|
||||||
|
@ -11,7 +11,11 @@ export DOCKER_NAME_TAG=ubuntu:18.04 # Check that bionic can cross-compile to ma
|
|||||||
export PIP_PACKAGES="zmq"
|
export PIP_PACKAGES="zmq"
|
||||||
export GOAL="install"
|
export GOAL="install"
|
||||||
export BITCOIN_CONFIG="--enable-gui --enable-reduce-exports --enable-werror"
|
export BITCOIN_CONFIG="--enable-gui --enable-reduce-exports --enable-werror"
|
||||||
export RUN_SECURITY_TESTS="true"
|
|
||||||
# Run without depends
|
|
||||||
export NO_DEPENDS=1
|
export NO_DEPENDS=1
|
||||||
export OSX_SDK=""
|
export OSX_SDK=""
|
||||||
|
|
||||||
|
export RUN_SECURITY_TESTS="true"
|
||||||
|
if [ "$TRAVIS_REPO_SLUG" != "bitcoin/bitcoin" ]; then
|
||||||
|
export RUN_FUNCTIONAL_TESTS="false"
|
||||||
|
export EXPECTED_TESTS_DURATION_IN_SECONDS=200
|
||||||
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user