This file contains hidden or 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
//"production": { | |
// "plugins": [ | |
// "transform-remove-console" | |
// ] | |
//} |
This file contains hidden or 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
# replace babelrc content, to output logs from React Native in console | |
mv .babelrc .babelOriginal | |
mv .babelrc_E2E .babelrc |
This file contains hidden or 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
echo "Starting coverage report" | |
npm run test:coverage > jestOutput.txt | |
// command above will call this command in package.json | |
"test:coverage": "jest --coverage --detectOpenHandles --silent ", |
This file contains hidden or 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
echo "Starting coverage report" | |
source "${APPCENTER_SOURCE_DIRECTORY}/scripts/coverageReport.sh" |
This file contains hidden or 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
if [ -n "$APPCENTER_ANDROID_VARIANT" ]; then | |
echo "Setup & boot Android simulator" | |
.....some stuff | |
npm run e2e:android | |
else | |
echo "Setup & boot iOS Simulator" | |
....some stuff | |
npm run e2e:ios -- --udid "$SIMULATOR_ID" | |
fi |
This file contains hidden or 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
GRACE_TIME=80 | |
APP_ID=org.stefanmajiros.bluepass.prod | |
echo "Setup iOS Simulator" | |
echo "Installing iOS Simulator dependencies" | |
brew tap wix/brew | |
brew update | |
brew install applesimutils | |
echo "Installing pods" | |
cd ./ios && /usr/local/lib/ruby/gems/2.7.0/bin/pod install --repo-update && cd .. |
This file contains hidden or 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
SIMULATOR_IMAGE="system-images;android-28;google_apis;x86" | |
SIMULATOR_NAME="Pixel_XL_API_28" |
This file contains hidden or 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
android list sdk --use-sdk-wrapper | |
# or if you want to get only simulator names | |
android list sdk --use-sdk-wrapper | grep system-images -w | |
# with redirecting output to file | |
android list sdk --use-sdk-wrapper | grep system-images -w > tmp2.txt |
This file contains hidden or 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
ANDROID_HOME=~/Library/Android/sdk | |
PATH="$ANDROID_HOME/emulator:$ANDROID_HOME/tools:$ANDROID_HOME/tools/bin:$ANDROID_HOME/platform-tools:$PATH" |
This file contains hidden or 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
echo "Accepts all sdk licences" | |
yes | sdkmanager --licenses | |
echo "Download Simulator Image" | |
sdkmanager --install "$SIMULATOR_IMAGE" |