|
| 1 | +dag: true |
| 2 | + |
1 | 3 | steps:
|
2 |
| - - name: ":bash: Lint" |
| 4 | + - id: "lint" |
| 5 | + name: ":bash: Lint" |
3 | 6 | command: .buildkite/steps/lint.sh
|
4 | 7 | agents:
|
5 | 8 | queue: "${BUILDKITE_AGENT_META_DATA_QUEUE}"
|
6 | 9 |
|
7 |
| - - name: ":bash: Unit tests" |
| 10 | + - id: "bats-tests" |
| 11 | + name: ":bash: Unit tests" |
8 | 12 | agents:
|
9 | 13 | queue: "${BUILDKITE_AGENT_META_DATA_QUEUE}"
|
10 | 14 | plugins:
|
11 | 15 | docker-compose#v2.1.0:
|
12 | 16 | run: unit-tests
|
13 | 17 | config: docker-compose.unit-tests.yml
|
14 | 18 |
|
15 |
| - - wait |
16 |
| - - name: ":packer: :windows:" |
| 19 | + - id: "packer-windows" |
| 20 | + name: ":packer: :windows:" |
17 | 21 | command: .buildkite/steps/packer.sh windows
|
18 | 22 | agents:
|
19 | 23 | queue: "${BUILDKITE_AGENT_META_DATA_QUEUE}"
|
| 24 | + depends_on: |
| 25 | + - "lint" |
| 26 | + - "bats-tests" |
20 | 27 |
|
21 |
| - - wait |
22 |
| - - name: ":cloudformation: :windows: Launch" |
| 28 | + - id: "windows-launch" |
| 29 | + name: ":cloudformation: :windows: Launch" |
23 | 30 | command: .buildkite/steps/launch.sh windows
|
24 | 31 | agents:
|
25 | 32 | queue: "${BUILDKITE_AGENT_META_DATA_QUEUE}"
|
26 | 33 | artifact_paths: "build/aws-stack.yml"
|
| 34 | + depends_on: "packer-windows" |
27 | 35 |
|
28 |
| - - wait |
29 |
| - - name: ":cloudformation: :windows: Test" |
| 36 | + - id: "windows-test" |
| 37 | + name: ":cloudformation: :windows: Test" |
30 | 38 | command: "docker info"
|
31 | 39 | timeout_in_minutes: 5
|
32 | 40 | agents:
|
33 | 41 | stack: "buildkite-aws-stack-test-windows-${BUILDKITE_BUILD_NUMBER}"
|
34 | 42 | queue: "testqueue-windows-${BUILDKITE_BUILD_NUMBER}"
|
| 43 | + depends_on: "windows-launch" |
35 | 44 |
|
36 |
| - - wait |
37 |
| - - name: ":packer: :linux:" |
| 45 | + - id: "packer-linux" |
| 46 | + name: ":packer: :linux:" |
38 | 47 | command: .buildkite/steps/packer.sh linux
|
39 | 48 | agents:
|
40 | 49 | queue: "${BUILDKITE_AGENT_META_DATA_QUEUE}"
|
| 50 | + depends_on: |
| 51 | + - "lint" |
| 52 | + - "bats-tests" |
41 | 53 |
|
42 |
| - - wait |
43 |
| - - name: ":cloudformation: :linux: Launch" |
| 54 | + - id: "linux-launch" |
| 55 | + name: ":cloudformation: :linux: Launch" |
44 | 56 | command: .buildkite/steps/launch.sh linux
|
45 | 57 | agents:
|
46 | 58 | queue: "${BUILDKITE_AGENT_META_DATA_QUEUE}"
|
47 | 59 | artifact_paths: "build/aws-stack.yml"
|
| 60 | + depends_on: "packer-linux" |
48 | 61 |
|
49 |
| - - wait |
50 |
| - - name: ":cloudformation: :linux: Test" |
| 62 | + - id: "linux-test" |
| 63 | + name: ":cloudformation: :linux: Test" |
51 | 64 | command: "goss validate --format documentation"
|
52 | 65 | timeout_in_minutes: 5
|
53 | 66 | agents:
|
54 | 67 | stack: "buildkite-aws-stack-test-linux-${BUILDKITE_BUILD_NUMBER}"
|
55 | 68 | queue: "testqueue-linux-${BUILDKITE_BUILD_NUMBER}"
|
| 69 | + depends_on: "linux-launch" |
56 | 70 |
|
57 |
| - - wait |
58 |
| - - name: ":cloudformation: 🚚 🌎" |
| 71 | + - id: "copy-ami" |
| 72 | + name: ":cloudformation: 🚚 🌎" |
59 | 73 | command: .buildkite/steps/copy.sh
|
60 | 74 | agents:
|
61 | 75 | queue: "${BUILDKITE_AGENT_META_DATA_QUEUE}"
|
62 | 76 | artifact_paths: "build/mappings.yml"
|
| 77 | + depends_on: |
| 78 | + - "linux-test" |
| 79 | + - "windows-test" |
63 | 80 |
|
64 |
| - - wait |
65 |
| - - name: ":cloudformation: :rocket:" |
| 81 | + - id: "publish" |
| 82 | + name: ":cloudformation: :rocket:" |
66 | 83 | command: .buildkite/steps/publish.sh
|
67 | 84 | agents:
|
68 | 85 | queue: "${BUILDKITE_AGENT_META_DATA_QUEUE}"
|
69 | 86 | concurrency_group: "aws-stack-publish"
|
70 | 87 | concurrency: 1
|
71 | 88 | artifact_paths: "build/*.yml"
|
| 89 | + depends_on: "copy-ami" |
72 | 90 |
|
73 |
| - - wait |
74 |
| - - name: "Cleanup" |
| 91 | + - id: "cleanup" |
| 92 | + name: "Cleanup" |
75 | 93 | command: .buildkite/steps/cleanup.sh
|
76 | 94 | agents:
|
77 | 95 | queue: "${BUILDKITE_AGENT_META_DATA_QUEUE}"
|
| 96 | + depends_on: "publish" |
0 commit comments