|
1 | | -common-params: |
2 | | - &publish-android-artifacts-docker-container |
3 | | - docker#v3.8.0: |
4 | | - image: "public.ecr.aws/automattic/android-build-image:v1.2.0" |
5 | | - propagate-environment: true |
6 | | - environment: |
7 | | - # DO NOT MANUALLY SET THESE VALUES! |
8 | | - # They are passed from the Buildkite agent to the Docker container |
9 | | - - "AWS_ACCESS_KEY" |
10 | | - - "AWS_SECRET_KEY" |
| 1 | +# Run everything on the `android` queue |
| 2 | +agents: |
| 3 | + queue: android |
| 4 | + |
| 5 | +# Nodes with values to reuse in the pipeline. |
| 6 | +common_params: |
| 7 | + # Common plugin settings to use with the `plugins` key. |
| 8 | + - &common_plugins |
| 9 | + - automattic/bash-cache#2.6.0 |
11 | 10 |
|
12 | 11 | steps: |
| 12 | + - label: "Lint" |
| 13 | + key: "lint" |
| 14 | + command: .buildkite/commands/lint.sh |
| 15 | + plugins: *common_plugins |
| 16 | + artifact_paths: |
| 17 | + - "aztec/build/reports/*" |
| 18 | + |
| 19 | + - label: "Unit Tests" |
| 20 | + key: "test" |
| 21 | + command: .buildkite/commands/unit-test.sh |
| 22 | + plugins: *common_plugins |
| 23 | + artifact_paths: |
| 24 | + - "aztec/build/test-results/**/*.xml" |
| 25 | + |
| 26 | + - label: "Connected Tests" |
| 27 | + key: "connected-test" |
| 28 | + command: .buildkite/commands/connected-tests.sh |
| 29 | + plugins: *common_plugins |
| 30 | + artifact_paths: |
| 31 | + - "aztec/build/test-results/**/*.xml" |
| 32 | + |
13 | 33 | - label: "Publish :aztec" |
14 | 34 | key: "publish-aztec" |
15 | | - plugins: |
16 | | - - *publish-android-artifacts-docker-container |
17 | | - command: | |
18 | | - .buildkite/publish-aztec.sh |
| 35 | + command: .buildkite/commands/publish-aztec.sh |
| 36 | + plugins: *common_plugins |
19 | 37 |
|
20 | 38 | - label: "Publish :glide-loader" |
21 | 39 | key: "publish-glide-loader" |
22 | 40 | depends_on: |
23 | 41 | - "publish-aztec" |
24 | | - plugins: |
25 | | - - *publish-android-artifacts-docker-container |
26 | | - command: | |
27 | | - .buildkite/publish-glide-loader.sh |
| 42 | + command: .buildkite/commands/publish-glide-loader.sh |
| 43 | + plugins: *common_plugins |
28 | 44 |
|
29 | 45 | - label: "Publish :picasso-loader" |
30 | 46 | key: "publish-picasso-loader" |
31 | 47 | depends_on: |
32 | 48 | - "publish-aztec" |
33 | | - plugins: |
34 | | - - *publish-android-artifacts-docker-container |
35 | | - command: | |
36 | | - .buildkite/publish-picasso-loader.sh |
| 49 | + command: .buildkite/commands/publish-picasso-loader.sh |
| 50 | + plugins: *common_plugins |
37 | 51 |
|
38 | 52 | - label: "Publish :wordpress-shortcodes" |
39 | 53 | key: "publish-wordpress-shortcodes" |
40 | 54 | depends_on: |
41 | 55 | - "publish-aztec" |
42 | | - plugins: |
43 | | - - *publish-android-artifacts-docker-container |
44 | | - command: | |
45 | | - .buildkite/publish-wordpress-shortcodes.sh |
| 56 | + command: .buildkite/commands/publish-wordpress-shortcodes.sh |
| 57 | + plugins: *common_plugins |
46 | 58 |
|
47 | 59 | - label: "Publish :wordpress-comments" |
48 | 60 | key: "publish-wordpress-comments" |
49 | 61 | depends_on: |
50 | 62 | - "publish-aztec" |
51 | | - plugins: |
52 | | - - *publish-android-artifacts-docker-container |
53 | | - command: | |
54 | | - .buildkite/publish-wordpress-comments.sh |
| 63 | + command: .buildkite/commands/publish-wordpress-comments.sh |
| 64 | + plugins: *common_plugins |
55 | 65 |
|
56 | 66 | - label: "Publish :media-placeholders" |
57 | 67 | key: "publish-media-placeholders" |
58 | 68 | depends_on: |
59 | 69 | - "publish-aztec" |
60 | | - plugins: |
61 | | - - *publish-android-artifacts-docker-container |
62 | | - command: | |
63 | | - .buildkite/publish-media-placeholders.sh |
| 70 | + command: .buildkite/commands/publish-media-placeholders.sh |
| 71 | + plugins: *common_plugins |
0 commit comments