Skip to content

Commit 87a8f00

Browse files
committed
CI: Test generate baseline profile step on ci
1 parent b7e5376 commit 87a8f00

File tree

1 file changed

+13
-101
lines changed

1 file changed

+13
-101
lines changed

.buildkite/pipeline.yml

Lines changed: 13 additions & 101 deletions
Original file line numberDiff line numberDiff line change
@@ -1,108 +1,20 @@
11
# yaml-language-server: $schema=https://raw.githubusercontent.com/buildkite/pipeline-schema/main/schema.json
22
---
33

4-
# Nodes with values to reuse in the pipeline.
5-
common_params:
6-
# Common plugin settings to use with the `plugins` key.
7-
- &test_collector_common_params
8-
files: "WooCommerce/build/buildkite-test-analytics/*.xml"
9-
format: "junit"
10-
114
agents:
125
queue: "android"
136

147
steps:
15-
- label: Gradle Wrapper Validation
16-
command: validate_gradle_wrapper
17-
agents:
18-
queue: linter
19-
20-
# Wait for Gradle Wrapper to be validated before running any other jobs
21-
- wait
22-
23-
########################################
24-
- group: "🕵️ Linters"
25-
steps:
26-
27-
- label: "☢️ Danger - PR Check"
28-
command: danger
29-
key: danger
30-
if: "build.pull_request.id != null"
31-
retry:
32-
manual:
33-
permit_on_passed: true
34-
agents:
35-
queue: "linter"
36-
37-
- label: "detekt"
38-
command: |
39-
if .buildkite/commands/should-skip-job.sh --job-type validation; then
40-
exit 0
41-
fi
42-
./gradlew detektAll
43-
plugins: [$CI_TOOLKIT]
44-
artifact_paths:
45-
- "**/build/reports/detekt/detekt.html"
46-
47-
- label: "lint"
48-
command: .buildkite/commands/lint.sh
49-
plugins: [$CI_TOOLKIT]
50-
artifact_paths:
51-
- "**/build/reports/lint-results*.*"
52-
53-
- label: "Dependency Tree Diff"
54-
command: comment_with_dependency_diff 'woocommerce' 'vanillaReleaseRuntimeClasspath'
55-
if: build.pull_request.id != null
56-
plugins: [$CI_TOOLKIT]
57-
artifact_paths:
58-
- "**/build/reports/diff/*"
59-
60-
- label: "Merged Manifest Diff"
61-
command: ".buildkite/commands/diff-merged-manifest.sh vanillaRelease"
62-
if: build.pull_request.id != null
63-
plugins: [$CI_TOOLKIT]
64-
artifact_paths:
65-
- "**/build/reports/diff_manifest/**/**/*"
66-
67-
########################################
68-
- group: "🛠 Prototype Builds"
69-
steps:
70-
71-
- label: "🛠 Prototype Build: Mobile App"
72-
command: ".buildkite/commands/prototype-build.sh WooCommerce"
73-
if: build.pull_request.id != null
74-
plugins: [$CI_TOOLKIT]
75-
76-
- label: "🛠 Prototype Build: Wear App"
77-
command: ".buildkite/commands/prototype-build.sh WooCommerce-Wear"
78-
if: build.pull_request.id != null
79-
plugins: [$CI_TOOLKIT]
80-
81-
########################################
82-
- group: "🔬 Tests"
83-
steps:
84-
85-
- label: "Unit tests"
86-
command: .buildkite/commands/run-unit-tests.sh
87-
plugins:
88-
- $CI_TOOLKIT
89-
- $TEST_COLLECTOR :
90-
<<: *test_collector_common_params
91-
api-token-env-name: "BUILDKITE_ANALYTICS_TOKEN_UNIT_TESTS"
92-
artifact_paths:
93-
- "**/build/test-results/merged-test-results.xml"
94-
95-
- label: "Instrumented tests"
96-
command: .buildkite/commands/run-instrumented-tests.sh
97-
plugins:
98-
- $CI_TOOLKIT
99-
- $TEST_COLLECTOR :
100-
<<: *test_collector_common_params
101-
api-token-env-name: "BUILDKITE_ANALYTICS_TOKEN_INSTRUMENTED_TESTS"
102-
artifact_paths:
103-
- "**/build/instrumented-tests/**/*"
104-
105-
106-
- label: "🐘 Populate Gradle build cache"
107-
command: .buildkite/commands/gradle-cache-build.sh
108-
plugins: [$CI_TOOLKIT]
8+
- label: "Generate Baseline Profile"
9+
command: |
10+
echo "--- :rubygems: Setting up Gems"
11+
install_gems
12+
13+
echo "--- :closed_lock_with_key: Installing Secrets"
14+
bundle exec fastlane run configure_apply
15+
16+
echo "--- :hammer_and_wrench: Building"
17+
./gradlew :WooCommerce:generateVanillaReleaseBaselineProfile
18+
plugins: [ $CI_TOOLKIT ]
19+
artifact_paths:
20+
- "**/src/vanillaRelease/generated/baselineProfiles/*"

0 commit comments

Comments
 (0)