Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(214)

Side by Side Diff: platform_tools/ios/bin/ios_setup.sh

Issue 1860333002: More iOS swarming bot fixes (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: More paths Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « platform_tools/ios/bin/ios_run_skia ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/bash 1 #!/bin/bash
2 ############################################################################### 2 ###############################################################################
3 # Copyright 2015 Google Inc. 3 # Copyright 2015 Google Inc.
4 # 4 #
5 # Use of this source code is governed by a BSD-style license that can be 5 # Use of this source code is governed by a BSD-style license that can be
6 # found in the LICENSE file. 6 # found in the LICENSE file.
7 ############################################################################### 7 ###############################################################################
8 # 8 #
9 # ios_setup.sh: Sets environment variables used by other iOS scripts. 9 # ios_setup.sh: Sets environment variables used by other iOS scripts.
10 10
(...skipping 26 matching lines...) Expand all
37 fi 37 fi
38 38
39 # Out dir is $SKIA_SRC_DIR/out by default. 39 # Out dir is $SKIA_SRC_DIR/out by default.
40 if [[ -z "$SKIA_OUT" ]]; then 40 if [[ -z "$SKIA_OUT" ]]; then
41 SKIA_OUT="$SKIA_SRC_DIR/out" 41 SKIA_OUT="$SKIA_SRC_DIR/out"
42 fi 42 fi
43 43
44 # Name of the iOS app. 44 # Name of the iOS app.
45 IOS_APP=iOSShell.ipa 45 IOS_APP=iOSShell.ipa
46 46
47 # Location of the compiled iOS code.
48 IOS_OUT=${SKIA_SRC_DIR}/xcodebuild/${BUILDTYPE}-iphoneos
49
47 # Location of the compiled iOS app. 50 # Location of the compiled iOS app.
48 IOS_APP_PATH=${SKIA_OUT}/${BUILDTYPE}/${IOS_APP} 51 IOS_APP_PATH=${IOS_OUT}/${IOS_APP}
49
50 52
51 ios_uninstall_app() { 53 ios_uninstall_app() {
52 ideviceinstaller -U "$IOS_BUNDLE_ID" 54 ideviceinstaller -U "$IOS_BUNDLE_ID"
53 } 55 }
54 56
55 ios_package_app() { 57 ios_package_app() {
56 rm -rf $IOS_PCKG_DIR 58 rm -rf $IOS_PCKG_DIR
57 mkdir -p $IOS_PCKG_DIR/Payload # this directory must be named 'Payload' 59 mkdir -p $IOS_PCKG_DIR/Payload # this directory must be named 'Payload'
58 cp -rf "${SKIA_SRC_DIR}/xcodebuild/${BUILDTYPE}-iphoneos/iOSShell.app" "${IOS_ PCKG_DIR}/Payload/" 60 cp -rf "${IOS_OUT}/iOSShell.app" "${IOS_PCKG_DIR}/Payload/"
59 pushd $IOS_PCKG_DIR 61 pushd $IOS_PCKG_DIR
60 zip -r ${IOS_APP} Payload 62 zip -r ${IOS_APP} Payload
61 cp ${IOS_APP} ${IOS_APP_PATH} 63 cp ${IOS_APP} ${IOS_APP_PATH}
62 popd 64 popd
63 } 65 }
64 66
65 ios_install_app() { 67 ios_install_app() {
66 ideviceinstaller -i ${IOS_APP_PATH} 68 ideviceinstaller -i ${IOS_APP_PATH}
67 } 69 }
68 70
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 # adb_push_if_needed $HOST_SRC $ANDROID_DST 193 # adb_push_if_needed $HOST_SRC $ANDROID_DST
192 # else 194 # else
193 # echo -n "$ANDROID_DST " 195 # echo -n "$ANDROID_DST "
194 # $ADB $DEVICE_SERIAL shell mkdir -p "$(dirname "$ANDROID_DST")" 196 # $ADB $DEVICE_SERIAL shell mkdir -p "$(dirname "$ANDROID_DST")"
195 # $ADB $DEVICE_SERIAL push $HOST_SRC $ANDROID_DST 197 # $ADB $DEVICE_SERIAL push $HOST_SRC $ANDROID_DST
196 # fi 198 # fi
197 # fi 199 # fi
198 # } 200 # }
199 201
200 # setup_device "${DEVICE_ID}" 202 # setup_device "${DEVICE_ID}"
OLDNEW
« no previous file with comments | « platform_tools/ios/bin/ios_run_skia ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698