forked from elastic/package-spec
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpipeline.yml
52 lines (47 loc) · 1.45 KB
/
pipeline.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
# yaml-language-server: $schema=https://raw.githubusercontent.com/buildkite/pipeline-schema/main/schema.json
env:
SETUP_GVM_VERSION: 'v0.5.0' # https://github.com/andrewkroh/gvm/issues/44#issuecomment-1013231151
SETUP_MAGE_VERSION: "latest"
GO_VERSION: "1.20.3"
GO_LINUX_AGENT_IMAGE: "golang:${GO_VERSION}"
GO_WINDOWS_AGENT_IMAGE: "family/ci-windows-2022"
steps:
- label: ":go: Run check-static"
key: check
command: "make check"
agents:
image: "${GO_LINUX_AGENT_IMAGE}"
cpu: "8"
memory: "4G"
- group: "Run tests"
key: "tests"
steps:
- label: ":linux: Tests on Linux"
key: linux-test
command: ".buildkite/scripts/run-linux-tests.sh"
agents:
image: "${GO_LINUX_AGENT_IMAGE}"
cpu: "8"
memory: "4G"
artifact_paths:
- build/test-results/*.xml
- label: ":windows: Tests on Windows"
key: windows-test
command: ".buildkite/scripts/run-win-tests.ps1"
agents:
provider: "gcp"
image: "${GO_WINDOWS_AGENT_IMAGE}"
artifact_paths:
- "*.xml"
- label: ":junit: Junit annotate"
plugins:
- junit-annotate#v2.4.1:
artifacts: "*.xml"
fail-build-on-error: true
agents:
provider: "gcp"
depends_on:
- step: "linux-test"
allow_failure: true
- step: "windows-test"
allow_failure: true