You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge #16582: test: Rework ci (Use travis only as fallback env)
faeacf3 ci: Add note that this assumes a fresh git clone (MarcoFalke)
fa6cbdc ci: Use ./ci/ on non-travis host (MarcoFalke)
fa31bc3 ci: Remove dependence on travis, use it as fallback env (MarcoFalke)
fa0aac0 ci: Add retry (MarcoFalke)
fafe78f ci: Rename .travis/ to ./ci/ (MarcoFalke)
Pull request description:
This moves the `.travis` folder to `ci` and removes dependence on travis, so that the test script can be run anywhere.
Top commit has no ACKs.
Tree-SHA512: 4d8c82f3eb4e9e047444b0e0f700485e929a3c4d27fc8777a95b8847f23ed507d2701cc92730198b14d1e753cbb558ffac883da558fc2ec72b8a12c4eaec9000
- CACHE_ERR_MSG="Error! Initial build successful, but not enough time remains to run later build stages and tests. Please manually re-run this job by using the travis restart button or asking a bitcoin maintainer to restart. The next run should not time out because the build cache has been saved."
58
45
before_install:
59
-
- set -o errexit; source .travis/test_03_before_install.sh
46
+
- set -o errexit; source ./ci/test/00_setup_env.sh
47
+
- set -o errexit; source ./ci/test/03_before_install.sh
60
48
install:
61
-
- set -o errexit; source .travis/test_04_install.sh
49
+
- set -o errexit; source ./ci/test/04_install.sh
62
50
before_script:
63
-
- set -o errexit; source .travis/test_05_before_script.sh
51
+
- set -o errexit; source ./ci/test/05_before_script.sh
64
52
script:
65
53
- export CONTINUE=1
66
54
- if [ $SECONDS -gt 1200 ]; then export CONTINUE=0; fi # Likely the depends build took very long
67
55
- if [ $TRAVIS_REPO_SLUG = "bitcoin/bitcoin" ]; then export CONTINUE=1; fi # Whitelisted repo (90 minutes build time)
68
-
- if [ $CONTINUE = "1" ]; then set -o errexit; source .travis/test_06_script_a.sh; else set +o errexit; echo "$CACHE_ERR_MSG"; false; fi
56
+
- if [ $CONTINUE = "1" ]; then set -o errexit; source ./ci/test/06_script_a.sh; else set +o errexit; echo "$CACHE_ERR_MSG"; false; fi
69
57
- 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
70
58
- if [ $TRAVIS_REPO_SLUG = "bitcoin/bitcoin" ]; then export CONTINUE=1; fi # Whitelisted repo (90 minutes build time)
71
-
- if [ $CONTINUE = "1" ]; then set -o errexit; source .travis/test_06_script_b.sh; else set +o errexit; echo "$CACHE_ERR_MSG"; false; fi
59
+
- if [ $CONTINUE = "1" ]; then set -o errexit; source ./ci/test/06_script_b.sh; else set +o errexit; echo "$CACHE_ERR_MSG"; false; fi
72
60
after_script:
73
61
- echo $TRAVIS_COMMIT_RANGE
74
-
- echo $TRAVIS_COMMIT_LOG
75
62
jobs:
76
63
include:
77
64
@@ -82,11 +69,11 @@ jobs:
82
69
language: python
83
70
python: '3.5'# Oldest supported version according to doc/dependencies.md
84
71
install:
85
-
- set -o errexit; source .travis/lint_04_install.sh
72
+
- set -o errexit; source ./ci/lint/04_install.sh
86
73
before_script:
87
-
- set -o errexit; source .travis/lint_05_before_script.sh
74
+
- set -o errexit; source ./ci/lint/05_before_script.sh
88
75
script:
89
-
- set -o errexit; source .travis/lint_06_script.sh
76
+
- set -o errexit; source ./ci/lint/06_script.sh
90
77
91
78
- stage: extended-lint
92
79
name: 'extended lint [runtime >= 60 seconds]'
@@ -95,11 +82,11 @@ jobs:
95
82
language: python
96
83
python: '3.5'
97
84
install:
98
-
- set -o errexit; source .travis/extended_lint_04_install.sh
85
+
- set -o errexit; source ./ci/extended_lint/04_install.sh
99
86
before_script:
100
-
- set -o errexit; source .travis/lint_05_before_script.sh
87
+
- set -o errexit; source ./ci/lint/05_before_script.sh
101
88
script:
102
-
- set -o errexit; source .travis/extended_lint_06_script.sh
89
+
- set -o errexit; source ./ci/extended_lint/06_script.sh
103
90
104
91
- stage: test
105
92
name: 'ARM [GOAL: install] [no unit or functional tests]'
0 commit comments