-
Notifications
You must be signed in to change notification settings - Fork 163
/
Copy pathpipeline_buildlint.yml
67 lines (66 loc) · 2.24 KB
/
pipeline_buildlint.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
steps:
- label: ":bazel: Build scion code"
command:
- bazel --bazelrc=.bazelrc_ci build //:scion //:scion-ci
key: build
retry:
automatic:
- exit_status: -1 # Agent was lost
- exit_status: 255 # Forced agent shutdown
timeout_in_minutes: 10
- label: ":bazel: Go tests"
command:
- bazel --bazelrc=.bazelrc_ci test //go/... --print_relative_test_log_paths
key: go_tests
artifact_paths:
- "artifacts.out/**/*"
retry:
automatic:
- exit_status: -1 # Agent was lost
- exit_status: 255 # Forced agent shutdown
timeout_in_minutes: 10
- label: "Check generated go_deps.bzl file is up to date with go.mod"
command:
- "rm -rf /tmp/$BUILDKITE_STEP_ID/"
- "mkdir -p /tmp/$BUILDKITE_STEP_ID/"
- "cp go.mod go.sum go_deps.bzl /tmp/$BUILDKITE_STEP_ID/"
- "make godeps -B"
- "bazel-${BUILDKITE_PIPELINE_SLUG}/external/go_sdk/bin/go mod tidy"
- "diff -u /tmp/$BUILDKITE_STEP_ID/go.mod go.mod"
- "diff -u /tmp/$BUILDKITE_STEP_ID/go.sum go.sum"
- "diff -u /tmp/$BUILDKITE_STEP_ID/go_deps.bzl go_deps.bzl"
key: go_deps_lint
retry:
automatic:
- exit_status: -1 # Agent was lost
- exit_status: 255 # Forced agent shutdown
- label: "Check generated go/proto files in git"
command:
- "rm -rf /tmp/$BUILDKITE_STEP_ID/"
- "mkdir -p /tmp/$BUILDKITE_STEP_ID/"
- "cp -R go/proto/ /tmp/$BUILDKITE_STEP_ID/"
- "make gogen"
- "diff -ur /tmp/$BUILDKITE_STEP_ID/proto/ go/proto/"
key: go_gen_lint
retry:
automatic:
- exit_status: -1 # Agent was lost
- exit_status: 255 # Forced agent shutdown
- label: "Lint :bazel:"
command: ./scion.sh lint
key: lint
retry:
automatic:
- exit_status: -1 # Agent was lost
- exit_status: 255 # Forced agent shutdown
- label: "Acceptance: sig_failover"
command: bazel test //acceptance/sig_failover:sig_failover_test
key: sig_failover
retry:
automatic:
- exit_status: -1 # Agent was lost
- exit_status: 255 # Forced agent shutdown
artifact_paths:
- "artifacts.out/**/*"
env:
ACCEPTANCE_ARTIFACTS: "$BUILDKITE_BUILD_CHECKOUT_PATH/accept_artifacts"