Created
December 15, 2022 15:36
-
-
Save peteratdivvy/6be01d7e1a6d19c7b0de93a44a8920d9 to your computer and use it in GitHub Desktop.
Maestro build-on-succes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -eox pipefail | |
curl -Ls "https://get.maestro.mobile.dev" | bash | |
export PATH="$PATH":"$HOME/.maestro/bin" | |
brew install java | |
echo 'export PATH="/opt/homebrew/opt/openjdk/bin:$PATH"' >> ~/.zshrc | |
sudo ln -sfn /opt/homebrew/opt/openjdk/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk.jdk | |
export CPPFLAGS="-I/opt/homebrew/opt/openjdk/include" | |
MAESTRO_API_KEY=YOURAPIKEY | |
APP_EXECUTABLE_PATH=/Users/expo/workingdir/build/ios/build/Build/Products/Release-iphonesimulator/YOURAPP.app | |
maestro cloud --apiKey $MAESTRO_API_KEY $APP_EXECUTABLE_PATH .maestro/**/*.yml |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this to a file called
scripts/eas-build-on-success
and then in your package.json, add a script"eas-build-on-success": "bash ./scripts/eas-build-on-success.sh"
.On your expo build profile, make sure you and building for a simulator. We have a specific test eas profile that looks like this:
Then you will see a Build Success hook in your expo build that looks like this:
![image](https://user-images.githubusercontent.com/98723052/207903409-76970ae9-c82c-4856-8e81-decbc141f266.png)
and then resolves with:
![image](https://user-images.githubusercontent.com/98723052/207903501-92d11975-3445-4db3-9f1c-f6b34b55d4c7.png)