Skip to content

Commit ca1e1e0

Browse files
Merge branch 'develop' into feature/background-color-span-support-v3
2 parents baad141 + 4a6a062 commit ca1e1e0

File tree

251 files changed

+8040
-2129
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

251 files changed

+8040
-2129
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/bin/bash
2+
3+
set -euo pipefail
4+
5+
echo "--- :closed_lock_with_key: Installing Secrets"
6+
./gradlew applyConfiguration
7+
8+
echo -e "\n--- :gcloud: Logging into Google Cloud"
9+
gcloud auth activate-service-account --key-file .configure-files/firebase.secrets.json
10+
11+
echo -e "\n--- :hammer_and_wrench: Building Tests"
12+
./gradlew --stacktrace app:assembleDebug app:assembleDebugAndroidTest
13+
14+
echo -e "\n--- :firebase: Run Tests"
15+
gcloud firebase test android run \
16+
--project api-project-108380595987 \
17+
--type instrumentation \
18+
--app app/build/outputs/apk/debug/app-debug.apk \
19+
--test app/build/outputs/apk/androidTest/debug/app-debug-androidTest.apk \
20+
--device model=Nexus5X,version=26,locale=en,orientation=portrait \
21+
--verbosity info

.buildkite/commands/lint.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
3+
set -euo pipefail
4+
5+
echo "--- ktlint"
6+
./gradlew --stacktrace ktlint
7+
8+
echo -e "\n--- lintRelease"
9+
./gradlew --stacktrace lintRelease
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/bash
2+
3+
set -euo pipefail
4+
5+
./gradlew \
6+
:aztec:prepareToPublishToS3 $(prepare_to_publish_to_s3_params) \
7+
:aztec:publish
8+
9+
# Add meta-data for the published version so we can use it in subsequent steps
10+
cat ./aztec/build/published-version.txt | buildkite-agent meta-data set "PUBLISHED_AZTEC_VERSION"
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
3+
set -euo pipefail
4+
5+
# Retrieve data from previous steps
6+
PUBLISHED_AZTEC_VERSION=$(buildkite-agent meta-data get "PUBLISHED_AZTEC_VERSION")
7+
8+
./gradlew \
9+
-PaztecVersion="$PUBLISHED_AZTEC_VERSION" \
10+
:glide-loader:prepareToPublishToS3 $(prepare_to_publish_to_s3_params) \
11+
:glide-loader:publish
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
3+
set -euo pipefail
4+
5+
# Retrieve data from previous steps
6+
PUBLISHED_AZTEC_VERSION=$(buildkite-agent meta-data get "PUBLISHED_AZTEC_VERSION")
7+
8+
./gradlew \
9+
-PaztecVersion="$PUBLISHED_AZTEC_VERSION" \
10+
:media-placeholders:prepareToPublishToS3 $(prepare_to_publish_to_s3_params) \
11+
:media-placeholders:publish
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
3+
set -euo pipefail
4+
5+
# Retrieve data from previous steps
6+
PUBLISHED_AZTEC_VERSION=$(buildkite-agent meta-data get "PUBLISHED_AZTEC_VERSION")
7+
8+
./gradlew \
9+
-PaztecVersion="$PUBLISHED_AZTEC_VERSION" \
10+
:picasso-loader:prepareToPublishToS3 $(prepare_to_publish_to_s3_params) \
11+
:picasso-loader:publish
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
3+
set -euo pipefail
4+
5+
# Retrieve data from previous steps
6+
PUBLISHED_AZTEC_VERSION=$(buildkite-agent meta-data get "PUBLISHED_AZTEC_VERSION")
7+
8+
./gradlew \
9+
-PaztecVersion="$PUBLISHED_AZTEC_VERSION" \
10+
:wordpress-comments:prepareToPublishToS3 $(prepare_to_publish_to_s3_params) \
11+
:wordpress-comments:publish
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
3+
set -euo pipefail
4+
5+
# Retrieve data from previous steps
6+
PUBLISHED_AZTEC_VERSION=$(buildkite-agent meta-data get "PUBLISHED_AZTEC_VERSION")
7+
8+
./gradlew \
9+
-PaztecVersion="$PUBLISHED_AZTEC_VERSION" \
10+
:wordpress-shortcodes:prepareToPublishToS3 $(prepare_to_publish_to_s3_params) \
11+
:wordpress-shortcodes:publish

.buildkite/commands/unit-test.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
3+
set -euo pipefail
4+
5+
echo "--- Unit Test"
6+
./gradlew --stacktrace aztec:testRelease
7+

.buildkite/pipeline.yml

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
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.11.0
10+
11+
steps:
12+
- label: "Gradle Wrapper Validation"
13+
command: |
14+
validate_gradle_wrapper
15+
plugins: *common_plugins
16+
17+
# Wait for Gradle Wrapper to be validated before running any other jobs
18+
- wait
19+
20+
- label: "Lint"
21+
key: "lint"
22+
command: .buildkite/commands/lint.sh
23+
plugins: *common_plugins
24+
artifact_paths:
25+
- "aztec/build/reports/*"
26+
27+
- label: "Unit Tests"
28+
key: "test"
29+
command: .buildkite/commands/unit-test.sh
30+
plugins: *common_plugins
31+
artifact_paths:
32+
- "aztec/build/test-results/**/*.xml"
33+
34+
- label: "Connected Tests"
35+
key: "connected-test"
36+
command: .buildkite/commands/connected-tests.sh
37+
plugins: *common_plugins
38+
artifact_paths:
39+
- "aztec/build/test-results/**/*.xml"
40+
41+
- label: "Publish :aztec"
42+
key: "publish-aztec"
43+
command: .buildkite/commands/publish-aztec.sh
44+
plugins: *common_plugins
45+
46+
- label: "Publish :glide-loader"
47+
key: "publish-glide-loader"
48+
depends_on:
49+
- "publish-aztec"
50+
command: .buildkite/commands/publish-glide-loader.sh
51+
plugins: *common_plugins
52+
53+
- label: "Publish :picasso-loader"
54+
key: "publish-picasso-loader"
55+
depends_on:
56+
- "publish-aztec"
57+
command: .buildkite/commands/publish-picasso-loader.sh
58+
plugins: *common_plugins
59+
60+
- label: "Publish :wordpress-shortcodes"
61+
key: "publish-wordpress-shortcodes"
62+
depends_on:
63+
- "publish-aztec"
64+
command: .buildkite/commands/publish-wordpress-shortcodes.sh
65+
plugins: *common_plugins
66+
67+
- label: "Publish :wordpress-comments"
68+
key: "publish-wordpress-comments"
69+
depends_on:
70+
- "publish-aztec"
71+
command: .buildkite/commands/publish-wordpress-comments.sh
72+
plugins: *common_plugins
73+
74+
- label: "Publish :media-placeholders"
75+
key: "publish-media-placeholders"
76+
depends_on:
77+
- "publish-aztec"
78+
command: .buildkite/commands/publish-media-placeholders.sh
79+
plugins: *common_plugins

0 commit comments

Comments
 (0)