open-merou

Open Mérou, a free iOS app for the Oceanic+ underwater iPhone housing
git clone https://git.schurger.org/open-merou.git
Log | Files | Refs | README | LICENSE

wait-beta.sh (702B)


      1 #!/bin/bash
      2 # On the development host: waits until the latest build is processed, then test notes + groups + beta review.
      3 # The words matched below are the ones printed by the beta_setup lane (fastlane/Fastfile).
      4 host=$1; dir=$2
      5 build=$(ssh "$host" "ls -t ~/Library/Developer/Xcode/Archives/ | head -1" | sed -E 's/OpenMerou-([0-9]+).*/\1/')
      6 for i in $(seq 1 30); do
      7   out=$(ssh "$host" "cd $dir && fastlane ios beta_setup 2>&1" | grep -E "BUILD |WHAT TO TEST|EXTERNAL|BETA REVIEW")
      8   if echo "$out" | grep -q "BUILD $build VALID" && echo "$out" | grep -q "BETA REVIEW"; then echo "$out"; exit 0; fi
      9   sleep 45
     10 done
     11 echo "build $build not processed yet: run tools/wait-beta.sh $host $dir again"
     12 exit 1