Skip to content

Commit 4e8d788

Browse files
committed
Adds CI job staging-test-with-rebase-focal
This will run the Focal staging job in the CI.
1 parent 99509cf commit 4e8d788

File tree

3 files changed

+48
-2
lines changed

3 files changed

+48
-2
lines changed

.circleci/config.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff 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

devops/gce-nested/ci-go.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ set -e
1212
set -u
1313
set -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

devops/gce-nested/gce-runner.sh

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
# for storage as artifacts on the build, so devs can review via web.
55
set -e
66
set -u
7+
BASE_OS="${BASE_OS:-xenial}"
78

89

910
TOPLEVEL="$(git rev-parse --show-toplevel)"
@@ -51,9 +52,15 @@ function copy_securedrop_repo() {
5152

5253
# Main logic
5354
copy_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.
5858
trap 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

0 commit comments

Comments
 (0)