-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sh
executable file
·45 lines (39 loc) · 1.61 KB
/
build.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
40
41
42
43
44
#!/bin/sh
#################################################
# build.sh
# BepBop
#
# Created by Hiedi Utley on 9/14/13.
# Copyright (c) 2013 Bleeding Edge Press. All rights reserved.
#################################################
#################################################
# OS, NAME, PLATFORM CONSTANTS for -destination flag
#################################################
IOS_PLATFORM_DEVICE="iOS"
IOS_PLATFORM_SIMULATOR="iOS Simulator"
IOS_50="5.0"
IOS_51="5.1"
IOS_60="6.0"
IOS_61="6.1"
IOS_70="7.0"
IPAD="IPad"
IPAD_RETINA="iPad Retina";
IPHONE="iPhone";
IPHONE_RETINA="iPhone Retina (3.5-inch)";
IPHONE_RETINA_4INCH="iPhone Retina (4-inch)";
IPHONE_RETINA_4INCH_64BIT="iPhone Retina (4-inch 64-bit)";
#################################################
# XCTEST ONLY SUPPORTED ON IOS 7.0
#################################################
xcodebuild -workspace 'iOSEdge.xcworkspace' -scheme 'BepBopAndXCTests' \
-destination "platform=${IOS_PLATFORM_SIMULATOR},name=${IPHONE_RETINA},OS=${IOS_70}" \
-destination "platform=${IOS_PLATFORM_SIMULATOR},name=${IPHONE_RETINA_4INCH},OS=${IOS_70}" \
-destination "platform=${IOS_PLATFORM_SIMULATOR},name=${IPHONE_RETINA_4INCH_64BIT},OS=${IOS_70}" \
-configuration Release test
#################################################
# OCUNIT CAN RUN ON ANY IOS
#################################################
xcodebuild -workspace 'iOSEdge.xcworkspace' -scheme 'BepBopAndOCUnitTests' \
-destination "platform=${IOS_PLATFORM_SIMULATOR},name=${IPHONE_RETINA},OS=${IOS_61}" \
-destination "platform=${IOS_PLATFORM_SIMULATOR},name=${IPHONE_RETINA},OS=${IOS_70}" \
-configuration Release test