-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9c5ce7e
commit b466599
Showing
3 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/usr/bin/env bash | ||
set -e | ||
|
||
# Move out of bin directory to Gutenberg project root | ||
cd ../ | ||
|
||
BASELINE_BRANCH=${BASELINE_BRANCH:="trunk"} | ||
|
||
# Required for `git switch` on CI | ||
git fetch origin | ||
|
||
# Gather baseline perf measurements | ||
git switch "$BASELINE_BRANCH" | ||
npm --cwd ci | ||
npm run native test:perf --baseline | ||
|
||
# Gather current perf measurements & compare results | ||
git switch --detach - | ||
npm ci | ||
npm run native test:perf |