Skip to content

Commit

Permalink
Run builds for benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
wzieba committed Jan 30, 2025
1 parent b45f1e6 commit 45d7508
Showing 1 changed file with 19 additions and 62 deletions.
81 changes: 19 additions & 62 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,73 +20,30 @@ steps:
# Wait for Gradle Wrapper to be validated before running any other jobs
- wait

########################################
- 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: "detekt"
command: ./gradlew detektAll
plugins: [$CI_TOOLKIT]
artifact_paths:
- "**/build/reports/detekt/detekt.html"

- label: "lint"
command: .buildkite/commands/lint.sh
plugins: [$CI_TOOLKIT]
artifact_paths:
- "**/build/reports/lint-results*.*"

- label: "Dependency Tree Diff"
command: comment_with_dependency_diff 'woocommerce' 'vanillaReleaseRuntimeClasspath'
if: build.pull_request.id != null
plugins: [$CI_TOOLKIT]
artifact_paths:
- "**/build/reports/diff/*"

########################################
- group: "🛠 Prototype Builds"
steps:

- label: "🛠 Prototype Build: Mobile App"
command: ".buildkite/commands/prototype-build.sh WooCommerce"
if: build.pull_request.id != null
plugins: [$CI_TOOLKIT]
- label: ":android: No CC Build"
command: |
echo "--- :rubygems: Setting up Gems"
install_gems
- label: "🛠 Prototype Build: Wear App"
command: ".buildkite/commands/prototype-build.sh WooCommerce-Wear"
if: build.pull_request.id != null
plugins: [$CI_TOOLKIT]
echo "--- :closed_lock_with_key: Installing Secrets"
bundle exec fastlane run configure_apply
########################################
- group: "🔬 Tests"
steps:
echo "--- :android: Building without configuration cache"
./gradlew assembleWasabiDebug --no-configuration-cache --no-build-cache
plugins: [ $CI_TOOLKIT ]

- label: ":android: CC Build"
command: |
echo "--- :rubygems: Setting up Gems"
install_gems
- label: "Unit tests"
command: .buildkite/commands/run-unit-tests.sh
plugins:
- $CI_TOOLKIT
- $TEST_COLLECTOR :
<<: *test_collector_common_params
api-token-env-name: "BUILDKITE_ANALYTICS_TOKEN_UNIT_TESTS"
artifact_paths:
- "**/build/test-results/merged-test-results.xml"
echo "--- :closed_lock_with_key: Installing Secrets"
bundle exec fastlane run configure_apply
- label: "Instrumented tests"
command: .buildkite/commands/run-instrumented-tests.sh
plugins:
- $CI_TOOLKIT
- $TEST_COLLECTOR :
<<: *test_collector_common_params
api-token-env-name: "BUILDKITE_ANALYTICS_TOKEN_INSTRUMENTED_TESTS"
artifact_paths:
- "**/build/instrumented-tests/**/*"
echo "--- :android: Building without configuration cache"
./gradlew assembleWasabiDebug --no-build-cache
plugins: [ $CI_TOOLKIT ]

0 comments on commit 45d7508

Please sign in to comment.