Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
zeme-wana committed Nov 29, 2022
1 parent d429ceb commit c1aea84
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions nix/cells/automation/library/plutus-benchmark-runner.sh
Expand Up @@ -18,7 +18,7 @@
# as JSON data (see the curl command) meaning the script output has to be escaped
# first before we can insert it.

set -e
set +e

if [ -z "$PR_NUMBER" ] ; then
echo "[ci-plutus-benchmark]: 'PR_NUMBER' is not set! Exiting"
Expand All @@ -38,13 +38,22 @@ PR_BRANCH_REF=$(git rev-parse --short $PR_COMMIT_SHA)
echo "[ci-plutus-benchmark]: Processing benchmark comparison for benchmark '$BENCHMARK_NAME' on PR $PR_NUMBER"

echo "[ci-plutus-benchmark]: Updating cabal database ..."
nix develop --command cabal update
# nix develop --command cabal update

echo "[ci-plutus-benchmark]: Running benchmark for PR branch ..."
nix develop --command cabal bench $BENCHMARK_NAME >bench-PR.log 2>&1
# nix develop --command cabal bench $BENCHMARK_NAME >bench-PR.log 2>&1

echo "[ci-plutus-benchmark]: Switching branches ..."
pwd
ls -la
git status
git branch -v
echo b4 fetch
git checkout "$(git merge-base HEAD origin/master)"
git fetch
echo after fetch
git checkout "$(git merge-base HEAD origin/master)"

BASE_BRANCH_REF=$(git rev-parse --short HEAD)

echo "[ci-plutus-benchmark]: Clearing caches with cabal clean ..."
Expand Down

0 comments on commit c1aea84

Please sign in to comment.