message: Execute tests inside test-image from circleci shell
diff: @@ -55,12 +55,16 @@ jobs:
  name: wait for pod to come alive
  command: sleep 50 # TODO: try to improve approach if possible
  - run:
  - name: retrieve macaroons from lnd containers
  + name: retrieve macaroons from lnd containers and install test image
  command: |
  cd deploy &&\
  export MACAROON1=$(kubectl exec lnd-container-0 -- base64 /root/.lnd/data/chain/bitcoin/regtest/admin.macaroon | tr -d '\n\r') &&\
  export MACAROON2=$(kubectl exec lnd-container-1 -- base64 /root/.lnd/data/chain/bitcoin/regtest/admin.macaroon | tr -d '\n\r') &&\
  sed -e "s@macaroon1val@$MACAROON1@g" -e "s@macaroon2val@$MACAROON2@g" test-image.yml | kubectl apply -f - -o yaml
  + - run:
  + name: Run tests
  + command: |
  + kubectl exec test-pod -- bash -c "cd functions && yarn jest"
  build_test_image:
  working_directory: ~/GaloyApp/backend/firebase
  machine: true
  