fix(ci): use branch for diff jobs

This commit is contained in:
Łukasz Mierzwa
2020-05-24 17:53:40 +01:00
committed by Łukasz Mierzwa
parent 37eec5990d
commit 11f3fa1d60
2 changed files with 8 additions and 2 deletions

View File

@@ -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

View File

@@ -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