message: Delete cluster and show result at the end
diff: @@ -63,16 +63,20 @@ jobs:
  sed -e "s@macaroon1val@$MACAROON1@g" -e "s@macaroon2val@$MACAROON2@g" test-image.yml | kubectl apply -f - -o yaml
  - run:
  name: wait for test-pod to come alive
  - command: echo $(kubectl get pods) && sleep 60 # TODO: try to improve approach if possible
  + command: echo $(kubectl get pods) && sleep 70 # TODO: try to improve approach if possible
  - run:
  name: Run tests
  command: |
  kubectl get pods
  bash -c "kubectl exec test-pod -- bash -c \"cd functions && yarn jest\"; \
  echo \$? > testresult"
  + - run:
  + name: Delete devnet cluster
  + command: gcloud container clusters --region us-central1-b delete \
  + $(cat clustername | tr -d '\n\r')
  - run:
  name: Check test result
  - command: echo $(cat testresult)
  + command: bash -c "if(( $(<testresult)==0 )); then exit 0 ; else exit 1 ; fi"
  build_test_image:
  working_directory: ~/GaloyApp/backend/firebase
  machine: true
  