Skip to content
This repository was archived by the owner on Nov 25, 2022. It is now read-only.

Commit d26478d

Browse files
committed
Refactor complement scripts so we don't build more than we need to
1 parent 50d2c70 commit d26478d

File tree

1 file changed

+2
-30
lines changed

1 file changed

+2
-30
lines changed

complement/pipeline.yml

Lines changed: 2 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -4,39 +4,11 @@
44
# compromises this and other Buildkite agents.
55

66
steps:
7+
# Build and lint
78
- command:
89
- echo "deb http://deb.debian.org/debian buster-backports main" > /etc/apt/sources.list.d/complement.list
910
- apt-get update && apt-get install -y libolm3 libolm-dev/buster-backports
10-
- go build -tags="*" ./internal/...
11-
label: "\U0001F528 Build Complement / :go: 1.13"
12-
plugins:
13-
- docker#v3.7.0:
14-
image: "golang:1.13"
15-
mount-buildkite-agent: false
16-
retry:
17-
automatic:
18-
- exit_status: 128
19-
limit: 3
20-
21-
- command:
22-
- echo "deb http://deb.debian.org/debian buster-backports main" > /etc/apt/sources.list.d/complement.list
23-
- apt-get update && apt-get install -y libolm3 libolm-dev/buster-backports
24-
- go build -tags="*" ./internal/...
25-
label: "\U0001F528 Build Complement / :go: 1.15"
26-
plugins:
27-
- docker#v3.7.0:
28-
image: "golang:1.15"
29-
mount-buildkite-agent: false
30-
retry:
31-
automatic:
32-
- exit_status: 128
33-
limit: 3
34-
35-
- wait
36-
37-
# Linting can take a while. Run it after the wait to not block the test suite runs
38-
- command:
39-
- ./build/scripts/find-lint.sh
11+
- ./build/scripts/build-and-lint.sh
4012
label: "\U0001F9F9 Lint / :go: 1.15"
4113
agents:
4214
# Use a larger instance as linting takes a lot of memory

0 commit comments

Comments
 (0)