Skip to content

Commit

Permalink
Merge branch 'trunk' into dependabot/gradle/flipperVersion-0.247.0
Browse files Browse the repository at this point in the history
  • Loading branch information
nbradbury authored Jul 10, 2024
2 parents 4bc0bc9 + 6b4b7dc commit caa91d8
Show file tree
Hide file tree
Showing 1,023 changed files with 56,729 additions and 41,165 deletions.
39 changes: 39 additions & 0 deletions .aiexclude
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# OS X generated file
.DS_Store

# Build-related files
fastlane/

# Key-related files
.jks
.keystore

# Backup files
.bak

# Generated files
bin/
gen/
build/
build.log

# Built application files
.apk
.ap_
.aab

# Dex VM files
.dex

# Configuration files
.configure
.configure-files/
google-services.json
google-upload-credentials.json
firebase.secrets.json
sentry.properties

# Gradle files
gradle.properties
local.properties
local-builds.gradle
18 changes: 9 additions & 9 deletions .buildkite/beta-builds.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/buildkite/pipeline-schema/main/schema.json
---

# This pipeline is meant to be run via the Buildkite API, and is
# only used for beta builds

# Nodes with values to reuse in the pipeline.
common_params:
# Common plugin settings to use with the `plugins` key.
- &common_plugins
- automattic/a8c-ci-toolkit#2.17.0
agents:
queue: "android"

steps:
#################
Expand All @@ -14,7 +14,7 @@ steps:
- label: "Gradle Wrapper Validation"
command: |
validate_gradle_wrapper
plugins: *common_plugins
plugins: [$CI_TOOLKIT]

# Wait for Gradle Wrapper to be validated before running any other jobs
- wait
Expand Down Expand Up @@ -47,15 +47,15 @@ steps:
key: wpbuild
command: ".buildkite/commands/beta-build.sh wordpress"
depends_on: wplint
plugins: *common_plugins
plugins: [$CI_TOOLKIT]
notify:
- slack: "#build-and-ship"

- label: ":jetpack: :android: Beta Build"
key: jpbuild
command: ".buildkite/commands/beta-build.sh jetpack"
depends_on: jplint
plugins: *common_plugins
plugins: [$CI_TOOLKIT]
notify:
- slack: "#build-and-ship"

Expand All @@ -67,4 +67,4 @@ steps:
- wpbuild
- jpbuild
command: ".buildkite/commands/create-github-release.sh"
plugins: *common_plugins
plugins: [$CI_TOOLKIT]
17 changes: 10 additions & 7 deletions .buildkite/code-freeze.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
# Nodes with values to reuse in the pipeline.
common_params:
# Common plugin settings to use with the `plugins` key.
- &common_plugins
- automattic/a8c-ci-toolkit#2.17.0
# yaml-language-server: $schema=https://raw.githubusercontent.com/buildkite/pipeline-schema/main/schema.json
---


steps:
- label: "Code Freeze"
plugins: *common_plugins
plugins: [$CI_TOOLKIT]
command: |
.buildkite/commands/configure-git-for-release-management.sh
echo '--- :robot_face: Use bot for git operations'
source use-bot-for-git
echo '--- :ruby: Setup Ruby Tools'
install_gems
echo '--- :snowflake: Start Code Freeze'
bundle exec fastlane code_freeze skip_confirm:true
agents:
queue: "tumblr-metal"
10 changes: 0 additions & 10 deletions .buildkite/commands/configure-git-for-release-management.sh

This file was deleted.

19 changes: 12 additions & 7 deletions .buildkite/complete-code-freeze.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@
# Nodes with values to reuse in the pipeline.
common_params:
# Common plugin settings to use with the `plugins` key.
- &common_plugins
- automattic/a8c-ci-toolkit#2.17.0
# yaml-language-server: $schema=https://raw.githubusercontent.com/buildkite/pipeline-schema/main/schema.json
---


steps:
- label: "Complete Code Freeze"
plugins: *common_plugins
plugins: [$CI_TOOLKIT]
command: |
.buildkite/commands/configure-git-for-release-management.sh
echo '--- :robot_face: Use bot for git operations'
source use-bot-for-git
echo '--- :git: Checkout Release Branch'
.buildkite/commands/checkout-release-branch.sh
echo '--- :ruby: Setup Ruby Tools'
install_gems
echo '--- :snowflake: Complete Code Freeze'
bundle exec fastlane complete_code_freeze skip_confirm:true
agents:
queue: "tumblr-metal"
19 changes: 12 additions & 7 deletions .buildkite/finalize-release.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,23 @@
# Nodes with values to reuse in the pipeline.
common_params:
# Common plugin settings to use with the `plugins` key.
- &common_plugins
- automattic/a8c-ci-toolkit#2.17.0
# yaml-language-server: $schema=https://raw.githubusercontent.com/buildkite/pipeline-schema/main/schema.json
---


steps:
- label: "Finalize release"
plugins: *common_plugins
plugins: [$CI_TOOLKIT]
command: |
.buildkite/commands/configure-git-for-release-management.sh
echo '--- :robot_face: Use bot for git operations'
source use-bot-for-git
echo '--- :git: Checkout Release Branch'
.buildkite/commands/checkout-release-branch.sh
echo '--- :ruby: Setup Ruby Tools'
install_gems
cp gradle.properties-example gradle.properties
echo '--- :shipit: Finalize Release'
bundle exec fastlane finalize_release skip_confirm:true
agents:
queue: "tumblr-metal"
17 changes: 10 additions & 7 deletions .buildkite/new-beta-release.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
# Nodes with values to reuse in the pipeline.
common_params:
# Common plugin settings to use with the `plugins` key.
- &common_plugins
- automattic/a8c-ci-toolkit#2.17.0
# yaml-language-server: $schema=https://raw.githubusercontent.com/buildkite/pipeline-schema/main/schema.json
---


steps:
- label: "New Beta Release"
plugins: *common_plugins
plugins: [$CI_TOOLKIT]
command: |
.buildkite/commands/configure-git-for-release-management.sh
echo '--- :robot_face: Use bot for git operations'
source use-bot-for-git
echo '--- :ruby: Setup Ruby Tools'
install_gems
cp gradle.properties-example gradle.properties
echo '--- :shipit: New Beta Release'
bundle exec fastlane new_beta_release skip_confirm:true
agents:
queue: "tumblr-metal"
50 changes: 29 additions & 21 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/buildkite/pipeline-schema/main/schema.json
---

# Nodes with values to reuse in the pipeline.
common_params:
# Common plugin settings to use with the `plugins` key.
- &ci_toolkit
automattic/a8c-ci-toolkit#2.18.2
- &test_collector
test-collector#v1.8.0
- &test_collector_common_params
files: "buildkite-test-analytics/*.xml"
format: "junit"
Expand All @@ -19,7 +17,7 @@ steps:
- label: "Gradle Wrapper Validation"
command: |
validate_gradle_wrapper
plugins: [*ci_toolkit]
plugins: [$CI_TOOLKIT]

# Wait for Gradle Wrapper to be validated before running any other jobs
- wait
Expand All @@ -29,19 +27,29 @@ steps:
#################
- group: "🕵️‍♂️ Linters"
steps:
- label: "☢️ Danger - PR Check"
command: danger
key: danger
if: "build.pull_request.id != null"
retry:
manual:
permit_on_passed: true
agents:
queue: "linter"

- label: "🕵️ checkstyle"
command: |
cp gradle.properties-example gradle.properties
./gradlew checkstyle
plugins: [*ci_toolkit]
plugins: [$CI_TOOLKIT]
artifact_paths:
- "**/build/reports/checkstyle/checkstyle.*"

- label: "🕵️ detekt"
command: |
cp gradle.properties-example gradle.properties
./gradlew detekt
plugins: [*ci_toolkit]
plugins: [$CI_TOOLKIT]
artifact_paths:
- "**/build/reports/detekt/detekt.html"

Expand All @@ -60,7 +68,7 @@ steps:
cp gradle.properties-example gradle.properties
.buildkite/commands/dependency-tree-diff.sh
if: build.pull_request.id != null
plugins: [*ci_toolkit]
plugins: [$CI_TOOLKIT]

#################
# Unit Tests
Expand All @@ -70,8 +78,8 @@ steps:
- label: "🔬 Unit Test WordPress"
command: ".buildkite/commands/run-unit-tests.sh wordpress"
plugins:
- *ci_toolkit
- *test_collector :
- $CI_TOOLKIT
- $TEST_COLLECTOR :
<<: *test_collector_common_params
api-token-env-name: "BUILDKITE_ANALYTICS_TOKEN_UNIT_TESTS_WORDPRESS"
artifact_paths:
Expand All @@ -80,8 +88,8 @@ steps:
- label: "🔬 Unit Test Processors"
command: ".buildkite/commands/run-unit-tests.sh processors"
plugins:
- *ci_toolkit
- *test_collector :
- $CI_TOOLKIT
- $TEST_COLLECTOR :
<<: *test_collector_common_params
api-token-env-name: "BUILDKITE_ANALYTICS_TOKEN_UNIT_TESTS_PROCESSORS"
artifact_paths:
Expand All @@ -90,8 +98,8 @@ steps:
- label: "🔬 Unit Test Image Editor"
command: ".buildkite/commands/run-unit-tests.sh image-editor"
plugins:
- *ci_toolkit
- *test_collector :
- $CI_TOOLKIT
- $TEST_COLLECTOR :
<<: *test_collector_common_params
api-token-env-name: "BUILDKITE_ANALYTICS_TOKEN_UNIT_TESTS_IMAGE_EDITOR"
artifact_paths:
Expand All @@ -105,8 +113,8 @@ steps:
- label: ":wordpress: 🔬 Instrumented tests"
command: ".buildkite/commands/run-instrumented-tests.sh wordpress"
plugins:
- *ci_toolkit
- *test_collector :
- $CI_TOOLKIT
- $TEST_COLLECTOR :
<<: *test_collector_common_params
api-token-env-name: "BUILDKITE_ANALYTICS_TOKEN_INSTRUMENTED_TESTS_WORDPRESS"
artifact_paths:
Expand All @@ -115,8 +123,8 @@ steps:
- label: ":jetpack: 🔬 Instrumented tests"
command: ".buildkite/commands/run-instrumented-tests.sh jetpack"
plugins:
- *ci_toolkit
- *test_collector :
- $CI_TOOLKIT
- $TEST_COLLECTOR :
<<: *test_collector_common_params
api-token-env-name: "BUILDKITE_ANALYTICS_TOKEN_INSTRUMENTED_TESTS_JETPACK"
artifact_paths:
Expand All @@ -130,9 +138,9 @@ steps:
- label: ":wordpress: :android: Prototype Build"
command: ".buildkite/commands/prototype-build.sh wordpress"
if: build.pull_request.id != null
plugins: [*ci_toolkit]
plugins: [$CI_TOOLKIT]

- label: ":jetpack: :android: Prototype Build"
command: ".buildkite/commands/prototype-build.sh jetpack"
if: build.pull_request.id != null
plugins: [*ci_toolkit]
plugins: [$CI_TOOLKIT]
18 changes: 9 additions & 9 deletions .buildkite/release-builds.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/buildkite/pipeline-schema/main/schema.json
---

# This pipeline is meant to be run via the Buildkite API, and is
# only used for release builds

# Nodes with values to reuse in the pipeline.
common_params:
# Common plugin settings to use with the `plugins` key.
- &common_plugins
- automattic/a8c-ci-toolkit#2.17.0
agents:
queue: "android"

steps:
#################
Expand All @@ -15,7 +15,7 @@ steps:
command: |
validate_gradle_wrapper
priority: 1
plugins: *common_plugins
plugins: [$CI_TOOLKIT]

# Wait for Gradle Wrapper to be validated before running any other jobs
- wait
Expand Down Expand Up @@ -51,7 +51,7 @@ steps:
command: ".buildkite/commands/release-build.sh wordpress"
priority: 1
depends_on: wplint
plugins: *common_plugins
plugins: [$CI_TOOLKIT]
notify:
- slack: "#build-and-ship"

Expand All @@ -60,7 +60,7 @@ steps:
command: ".buildkite/commands/release-build.sh jetpack"
priority: 1
depends_on: jplint
plugins: *common_plugins
plugins: [$CI_TOOLKIT]
notify:
- slack: "#build-and-ship"

Expand All @@ -73,4 +73,4 @@ steps:
- jpbuild
command: ".buildkite/commands/create-github-release.sh"
priority: 1
plugins: *common_plugins
plugins: [$CI_TOOLKIT]
Loading

0 comments on commit caa91d8

Please sign in to comment.