Files

33 lines
741 B
Bash
Executable File

#!/bin/bash -ex
#Set xcode version from .xcoderc file
if [[ -f .xcoderc ]];then
xc_version=$(cat .xcoderc)
echo "Setting $xc_version"
export DEVELOPER_DIR="/Applications/Xcode_$xc_version.app/"
else
echo ".xcoderc not found. Xcode is default"
fi
UPLOAD_ARTIFACT="$(pwd)/scripts/upload_artifact.sh"
trap "$UPLOAD_ARTIFACT" EXIT
source $(dirname "$0")/ci.sh
mkdir -p coverage
pushd detox/test
## For some reason iOS simulators are not shown after resetting builder env
## After this command sims are available again
xcrun simctl list > /dev/null
run_f "yarn build:ios"
run_f "yarn e2e:ios"
cp coverage/lcov.info ../../coverage/e2e-ios-ci.lcov
run_f "scripts/ci_unhappy.sh ios"
# run_f "yarn verify-artifacts:ios"
popd