mirror of
https://github.com/prymitive/karma
synced 2026-02-13 20:59:53 +00:00
fix(ci): use branch for diff jobs
This commit is contained in:
committed by
Łukasz Mierzwa
parent
37eec5990d
commit
11f3fa1d60
@@ -5,8 +5,11 @@ set -o pipefail
|
||||
|
||||
git fetch origin master
|
||||
git reset --hard FETCH_HEAD
|
||||
|
||||
make benchmark-go | tee master.txt
|
||||
git checkout -f ${TRAVIS_COMMIT}
|
||||
|
||||
git reset --hard origin ${TRAVIS_PULL_REQUEST_BRANCH}
|
||||
make benchmark-go | tee new.txt
|
||||
|
||||
make benchmark-compare-go | tee benchstat.txt
|
||||
./scripts/pr-comment.py "Go benchmark diff" benchstat.txt noformat
|
||||
|
||||
@@ -5,10 +5,13 @@ set -o pipefail
|
||||
|
||||
git fetch origin master
|
||||
git reset --hard FETCH_HEAD
|
||||
|
||||
make -C ui build/stats.json
|
||||
mv ui/build/stats.json master.json
|
||||
|
||||
make clean
|
||||
git checkout -f ${TRAVIS_COMMIT}
|
||||
git reset --hard origin ${TRAVIS_PULL_REQUEST_BRANCH}
|
||||
make -C ui build/stats.json
|
||||
|
||||
./scripts/cra-bundle-stats-diff.py master.json ui/build/stats.json | tee diff.html
|
||||
./scripts/pr-comment.py "Webpack bundle size diff" diff.html html
|
||||
|
||||
Reference in New Issue
Block a user