-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
codemagic.yaml
38 lines (36 loc) · 1.4 KB
/
codemagic.yaml
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
workflows:
quotekit-workflow:
name: QuoteKit Building and Testing Workflow
instance_type: mac_mini_m1
environment:
xcode: latest
vars:
XCODE_SCHEME: QuoteKit
triggering:
events:
- push
scripts:
- name: Build Framework
script: |
#!/bin/zsh
declare -a DESTINATIONS=("platform=iOS Simulator,name=iPhone 14" "platform=watchOS Simulator,name=Apple Watch Series 8 (45mm)" "platform=tvOS Simulator,name=Apple TV 4K (3rd generation)" "platform=macOS")
for DESTINATION in "${DESTINATIONS[@]}"
do
xcodebuild clean build \
-scheme "$XCODE_SCHEME" \
-destination "$DESTINATION" \
-skipPackagePluginValidation
done
- name: Test Framework
script: |
#!/bin/zsh
declare -a DESTINATIONS=("platform=iOS Simulator,name=iPhone 14" "platform=watchOS Simulator,name=Apple Watch Series 8 (45mm)" "platform=tvOS Simulator,name=Apple TV 4K (3rd generation)" "platform=macOS")
for DESTINATION in "${DESTINATIONS[@]}"
do
set -o pipefail
xcodebuild clean test \
-scheme "$XCODE_SCHEME" \
-destination "$DESTINATION" \
-skipPackagePluginValidation | xcpretty --report junit
done
test_report: build/reports/junit.xml