forked from flexn-io/renative
-
Notifications
You must be signed in to change notification settings - Fork 0
/
run_osx_ios.sh
executable file
·39 lines (29 loc) · 1 KB
/
run_osx_ios.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/usr/bin/env bash
# RUN CHECK
echo "CURRENT ENV:: TRAVIS_BRANCH: $TRAVIS_BRANCH, TRAVIS_PULL_REQUEST: $TRAVIS_PULL_REQUEST, TRAVIS_TAG: $TRAVIS_TAG , TRAVIS_OS_NAME: $TRAVIS_OS_NAME"
# DEFINITIONS
# SETUP
set -e
set -o xtrace
set -o verbose
set -o pipefail
GLOBAL_ROOT="/Users/travis/.$ACCOUNT_NAME"
PROJECT_PATH="/Users/travis/build/$REPO_NAME"
GLOBAL_PATH="$GLOBAL_ROOT/$PROJECT_NAME"
PROV_PROFILES=~/Library/MobileDevice/Provisioning\ Profiles
# RESET
# rm -rf ./node_modules
mkdir -p $GLOBAL_PATH
mkdir -p "$PROV_PROFILES"
chmod 777 "$PROV_PROFILES"
security create-keychain -p travis ios-build.keychain
security default-keychain -s ios-build.keychain
security unlock-keychain -p travis ios-build.keychain
security set-keychain-settings -t 3600 -l ~/Library/Keychains/ios-build.keychain
brew tap wix/brew > /dev/null 2>&1
brew install applesimutils > /dev/null 2>&1
yarn bootstrap-clean
cd packages/app
# RUN
npx rnv template apply --template renative-template-hello-world -c helloworld --ci --mono
yarn e2e-ios