Skip to content

Commit d660946

Browse files
Add FIPS tests to pipeline
1 parent 3a0e0d3 commit d660946

2 files changed

Lines changed: 21 additions & 1 deletion

File tree

.buildkite/pipeline.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,19 @@ steps:
2323
artifact_paths:
2424
- "junit-*.xml"
2525

26+
- label: ":linux: Test Linux FIPS"
27+
key: test-lin-fips
28+
command:
29+
- ".buildkite/scripts/test.sh"
30+
env:
31+
FIPS: "true"
32+
agents:
33+
image: golang:${GO_VERSION}
34+
cpu: "8"
35+
memory: "4G"
36+
artifact_paths:
37+
- "junit-*.xml"
38+
2639
- label: ":windows: Test Windows"
2740
key: test-win
2841
command:
@@ -53,6 +66,8 @@ steps:
5366
depends_on:
5467
- step: "test-lin"
5568
allow_failure: true
69+
- step: "test-lin-fips"
70+
allow_failure: true
5671
- step: "test-win"
5772
allow_failure: true
5873
- step: "test-mac"

.buildkite/scripts/test.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,14 @@ go version
99
add_bin_path
1010
with_go_junit_report
1111

12+
tags=integration
13+
if [[ "$FIPS" == "true" ]]; then
14+
tags="${tags},requirefips"
15+
fi
16+
1217
echo "--- Go Test"
1318
set +e
14-
go test -tags integration -race -v ./... > tests-report.txt
19+
go test -tag=${tags} -race -v ./... > tests-report.txt
1520
exit_code=$?
1621
set -e
1722

0 commit comments

Comments
 (0)