forked from kickstarter/ios-oss
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
86 lines (86 loc) · 2.92 KB
/
circle.yml
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
machine:
xcode:
version: 8.3
dependencies:
cache_directories:
- "Frameworks/OpenTok"
pre:
- make bootstrap
- ls /Applications/ | grep "Xcode"
- system_profiler SPSoftwareDataType
- security list-keychains
- security find-identity -p codesigning
- instruments -s devices
- xcodebuild -showsdks
test:
pre:
- xcrun instruments -w 'iPhone 7 (10.2)' || true
- sleep 15
override:
- make lint
- PLATFORM=iOS make test
- PLATFORM=iOS TARGET=Library make test
- SCHEME=LiveStream make test
post:
- cp -rf Screenshots/FailureDiffs $CIRCLE_ARTIFACTS || true
experimental:
notify:
branches:
only:
- master
- beta-dist
- itunes-dist
deployment:
ios_beta:
branch: beta-dist
commands:
- agvtool new-version -all $(($(date +%s)/100))
- >
gym
--output_name "KickBeta"
--export_method "enterprise"
--provisioning_profile_path "circleci-beta-dist.mobileprovision"
--scheme "Kickstarter-iOS"
--configuration "Hockey"
- >
ipa distribute:hockeyapp
--token "$HOCKEY_APP_TOKEN"
--identifier "$HOCKEY_BETA_APP_ID"
--file "KickBeta.ipa"
--dsym "KickBeta.app.dSYM.zip"
--notes "CircleCI build $CIRCLE_BUILD_NUM"
--commit-sha "$CIRCLE_SHA1"
--build-server-url "$CIRCLE_BUILD_URL"
--repository-url "$CIRCLE_REPOSITORY_URL"
- >
ipa distribute:s3
--file "KickBeta.ipa"
--dsym "KickBeta.app.dSYM.zip"
--bucket "ios-ksr-builds"
--path "{CFBundleVersion}/"
ios_itc:
branch: itunes-dist
commands:
- agvtool new-version -all $(($(date +%s)/100))
- >
gym
--output_name "Kickstarter"
--provisioning_profile_path "circleci-itunes-dist.mobileprovision"
--codesigning_identity "iPhone Distribution: Kickstarter, Inc. (48YBP49Y5N)"
--scheme "Kickstarter-iOS"
--configuration "Release"
- >
ipa distribute:hockeyapp
--token "$HOCKEY_APP_TOKEN"
--identifier "$HOCKEY_RELEASE_APP_ID"
--file "Kickstarter.ipa"
--dsym "Kickstarter.app.dSYM.zip"
--notes "CircleCI build $CIRCLE_BUILD_NUM"
--commit-sha "$CIRCLE_SHA1"
--build-server-url "$CIRCLE_BUILD_URL"
--repository-url "$CIRCLE_REPOSITORY_URL"
- >
ipa distribute:itunesconnect
--file "Kickstarter.ipa"
--apple-id "596961532"
--warnings