File tree Expand file tree Collapse file tree 3 files changed +48
-2
lines changed
Expand file tree Collapse file tree 3 files changed +48
-2
lines changed Original file line number Diff line number Diff line change @@ -336,6 +336,37 @@ jobs:
336336 - store_artifacts :
337337 path : ~/sd/junit
338338
339+ staging-test-with-rebase-focal :
340+ machine :
341+ enabled : true
342+
343+ working_directory : ~/sd
344+ steps :
345+ - checkout
346+ - *rebaseontarget
347+ - *installenchant
348+
349+ - run :
350+ name : Run Staging tests on GCE
351+ command : |
352+ BRANCH_MATCH=$(devops/scripts/match-ci-branch.sh "^(i18n)")
353+ if [[ $BRANCH_MATCH =~ ^found ]]; then echo "Skipping: ${BRANCH_MATCH}"; exit 0; fi
354+ BASE_OS=focal make ci-go
355+ no_output_timeout : 35m
356+
357+ - run :
358+ name : Ensure environment torn down
359+ # Always report true, since env should will destroyed already
360+ # if all tests passed.
361+ command : make ci-teardown || true
362+ when : always
363+
364+ - store_test_results :
365+ path : ~/sd/junit-focal
366+
367+ - store_artifacts :
368+ path : ~/sd/junit-focal
369+
339370 deb-tests :
340371 docker :
341372 - image : gcr.io/cloud-builders/docker
@@ -415,6 +446,13 @@ workflows:
415446 - /i18n-.*/
416447 requires :
417448 - lint
449+ - staging-test-with-rebase-focal :
450+ filters :
451+ branches :
452+ ignore :
453+ - /i18n-.*/
454+ requires :
455+ - lint
418456 - translation-tests :
419457 requires :
420458 - lint
Original file line number Diff line number Diff line change 1212set -u
1313set -o pipefail
1414
15+ export BASE_OS=" ${BASE_OS:- xenial} "
1516
1617./devops/gce-nested/gce-start.sh
1718./devops/gce-nested/gce-runner.sh
Original file line number Diff line number Diff line change 44# for storage as artifacts on the build, so devs can review via web.
55set -e
66set -u
7+ BASE_OS=" ${BASE_OS:- xenial} "
78
89
910TOPLEVEL=" $( git rev-parse --show-toplevel) "
@@ -51,9 +52,15 @@ function copy_securedrop_repo() {
5152
5253# Main logic
5354copy_securedrop_repo
54- ssh_gce " make build-debs-notest"
5555
5656# The test results should be collected regardless of pass/fail,
5757# so register a trap to ensure the fetch always runs.
5858trap fetch_junit_test_results EXIT
59- ssh_gce " make staging"
59+ if [ " ${BASE_OS:- ' xenial' } " = " xenial" ]
60+ then
61+ ssh_gce " make build-debs-notest"
62+ ssh_gce " make staging"
63+ else
64+ ssh_gce " make build-debs-focal-notest"
65+ ssh_gce " make staging-focal"
66+ fi
You can’t perform that action at this time.
0 commit comments