app

Local-first trade for farms and co-ops
git clone https://radroots.dev/git/app.git
Log | Files | Refs | README | LICENSE

test-build-logic-stability.sh (889B)


      1 #!/bin/sh
      2 set -eu
      3 
      4 repository_root=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)
      5 gradle="$repository_root/gradlew"
      6 test_name='org.harvestcircle.buildlogic.plugins.ConventionPluginSmokeTest.packagingPluginRejectsMissingCloseEvidence'
      7 runs=25
      8 run=1
      9 
     10 while [ "$run" -le "$runs" ]; do
     11     printf '%s\n' "harvestcircle.build-logic-stability.run=$run/$runs"
     12     "$gradle" \
     13         --no-daemon \
     14         --no-configuration-cache \
     15         -p "$repository_root/build-logic" \
     16         :plugins:functionalTest \
     17         --tests "$test_name" \
     18         --rerun-tasks
     19     run=$((run + 1))
     20 done
     21 
     22 printf '%s\n' \
     23     'harvestcircle.build-logic-stability.prior-expected=did not report closed health evidence' \
     24     'harvestcircle.build-logic-stability.prior-observed=health-check timed out' \
     25     "harvestcircle.build-logic-stability.runs=$runs" \
     26     'harvestcircle.build-logic-stability.result=pass'