Skip to content

Commit

Permalink
CI: Extract diff merged manifest script (diff merged manifest)
Browse files Browse the repository at this point in the history
  • Loading branch information
ParaskP7 committed Feb 21, 2025
1 parent e6603ab commit 4a8b9a6
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 5 deletions.
25 changes: 25 additions & 0 deletions .buildkite/commands/diff-merged-manifest.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/bin/bash

"$(dirname "${BASH_SOURCE[0]}")/restore-merged-manifest.sh" "WooCommerce" "jalapenoDebug"

"$(dirname "${BASH_SOURCE[0]}")/restore-merged-manifest.sh" "WooCommerce-Wear" "jalapenoDebug"

"$(dirname "${BASH_SOURCE[0]}")/restore-cache.sh"

set -euo pipefail

echo "--- :rubygems: Setting up Gems"
install_gems

echo "--- :closed_lock_with_key: Installing Secrets"
bundle exec fastlane run configure_apply

echo "--- 📦 Create Merged Manifest"
./gradlew assembleJalapenoDebug
echo ""

echo "--- 💾 Diff Merged Manifest for WooCommerce"
comment_with_manifest_diff "WooCommerce" "jalapenoDebug"

echo "--- 💾 Diff Merged Manifest for WooCommerce-Wear"
comment_with_manifest_diff "WooCommerce-Wear" "jalapenoDebug"
6 changes: 1 addition & 5 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,7 @@ agents:

steps:
- label: "💾 Restore and Diff Merged Manifest"
command: |
".buildkite/commands/restore-merged-manifest.sh" "WooCommerce" "jalapenoDebug"
.buildkite/commands/restore-cache.sh
./gradlew assembleJalapenoDebug
"comment_with_manifest_diff" "WooCommerce" "jalapenoDebug"
command: .buildkite/commands/diff-merged-manifest.sh
plugins: [$CI_TOOLKIT]
artifact_paths:
- "**/build/reports/diff_manifest/*"

0 comments on commit 4a8b9a6

Please sign in to comment.