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

Unified Diff: platform_tools/ios/run_dm.sh

Issue 1087653005: ios buildbot scripts (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
Index: platform_tools/ios/run_dm.sh
diff --git a/platform_tools/ios/run_dm.sh b/platform_tools/ios/run_dm.sh
new file mode 100755
index 0000000000000000000000000000000000000000..a67dabea7ddcb9f4ebad42a99f134af8f35f9502
--- /dev/null
+++ b/platform_tools/ios/run_dm.sh
@@ -0,0 +1,53 @@
+#!/bin/bash
+SKIA_DIR=`pwd`
+PNG_DIR="/tmp/ios"
+rm -rf $PNG_DIR
+mkdir -p $PNG_DIR
+
+MOUNTDIR="/tmp/iosdevice"
+umount $MOUNTDIR
+rm -rf $MOUNTDIR
+mkdir -p $MOUNTDIR
+
+set -e
+
+# restart the device
+#idevicediagnostics restart
+
+
+# build the iOS project using gyp
+make clean
+cd $SKIA_DIR
+GYP_DEFINES="skia_os='ios' skia_arch_type='arm' armv7=1 arm_neon=0" ./gyp_skia
+
+# build the iOS project with XCode
+#xcodebuild -project out/gyp/iOSShell.xcodeproj -exportProvisioningProfile "Google Development" -exportSigningIdentity "iPhone Developer: Google Development (3F4Y5873JF)"
+#codesign -f -s 'iPhone Developer: Google Development (3F4Y5873JF)' xcodebuild/Debug-iphoneos/iOSShell.app/iOSShell
+
+xcodebuild -project out/gyp/iOSShell.xcodeproj PROVISIONING_PROFILE="9e88090d-abed-4e89-b106-3eff3512d31f" CODE_SIGN_IDENTITY="iPhone Developer: Google Development (3F4Y5873JF)"
+
+# Wait until the device is restarted.
+#echo "Sleeping for 20secs"
+#sleep 20s
+
+# install the app.
+# copy the archive to the device
+mkdir -p $PNG_DIR/Payload # this directory must be named 'Payload'
+cd $PNG_DIR
+cp -rf $SKIA_DIR/xcodebuild/Debug-iphoneos/iOSShell.app Payload/
+zip -r iOSShell.ipa Payload
+ideviceinstaller -i $PNG_DIR/iOSShell.ipa
+
+# remove data.
+ifuse --container com.google.iOSShell $MOUNTDIR
+# rm
+#umount $MOUNTDIR
+
+
+# Copy the GMs to a local filesytem
+
+# -v --writePath "resultOutput" --dm --nogpu --threads 0 --src gm tests --config 8888 --match ~Threaded ~Math ~VarAlloc
+
+#
+# idevicefs pull @/com.google.iOSShell/Documents/$dir/$f $PNG_DIR/ios_gm/$dir
+

Powered by Google App Engine
This is Rietveld 408576698