-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
executable file
·50 lines (42 loc) · 1.28 KB
/
Makefile
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
45
46
47
48
49
50
.SILENT: print-version
VERSION_SCRIPT = "Scripts/Version.sh"
BUILD_SCRIPT = "Scripts/Build.sh"
TESTFLIGHT_SCRIPT = "Scripts/Testflight.sh"
WORKSPACE = "XcodeBuildScripts.xcworkspace"
IOS_SDK = "iphoneos"
IOS_SIMULATOR_SDK = "iphonesimulator7.1"
ARTIFACTS_DIR = "artifacts"
TESTFLIGHT_API_TOKEN = "123"
TESTFLIGHT_TEAM_TOKEN = "321"
TESTFLIGHT_DISTRIBUTION_LISTS = "Developers"
TESTFLIGHT_ARTIFACT = "artifacts/testflight.json"
clean:
rm -rf artifacts
print-version:
/bin/bash ${VERSION_SCRIPT} \
-workspace ${WORKSPACE} \
-scheme "XcodeBuildScripts"
test-debug:
/bin/bash ${BUILD_SCRIPT} \
-workspace ${WORKSPACE} \
-scheme "XcodeBuildScripts" \
-configuration "Debug" \
-sdk ${IOS_SIMULATOR_SDK} \
-artifacts ${ARTIFACTS_DIR} \
-run-tests
build-release:
/bin/bash ${BUILD_SCRIPT} \
-workspace ${WORKSPACE} \
-scheme "XcodeBuildScripts" \
-configuration "Release" \
-sdk ${IOS_SDK} \
-artifacts ${ARTIFACTS_DIR} \
-identity "iPhone Distribution: That Guy" \
-profile "Provisioning/TestApp-Release.mobileprovision"
testflight:
/bin/bash ${TESTFLIGHT_SCRIPT} \
-artifacts ${ARTIFACTS_DIR} \
-api-token ${TESTFLIGHT_API_TOKEN} \
-team-token ${TESTFLIGHT_TEAM_TOKEN} \
-distribution-lists ${TESTFLIGHT_DISTRIBUTION_LISTS} \
-output-file ${TESTFLIGHT_ARTIFACT}