forked from rryam/MusadoraKit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcodemagic.yaml
More file actions
100 lines (95 loc) · 3.62 KB
/
codemagic.yaml
File metadata and controls
100 lines (95 loc) · 3.62 KB
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
definitions:
triggering:
push: &events
events:
- push
- pull_request
workflows:
musadorakit-xcode-26-0:
name: MusadoraKit Workflow (Xcode 26.0)
environment:
xcode: 26.0
vars:
XCODE_SCHEME: "MusadoraKit"
APP_ID: "Musadora"
when:
changeset:
includes:
- 'Sources'
- 'Tests'
triggering:
<<: *events
scripts:
- name: SwiftLint
script: |
#!/bin/zsh
brew install swiftlint
swiftlint lint --strict
- name: Build Framework
script: |
#!/bin/zsh
declare -a DESTINATIONS=("platform=iOS Simulator,name=iPhone 17" "platform=watchOS Simulator,name=Apple Watch Ultra 2 (49mm)" "platform=tvOS Simulator,name=Apple TV 4K (3rd generation)" "platform=macOS" "platform=macOS,variant=Mac Catalyst" "platform=visionOS Simulator,name=Apple Vision Pro")
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 17" "platform=watchOS Simulator,name=Apple Watch Ultra 2 (49mm)" "platform=tvOS Simulator,name=Apple TV 4K (3rd generation)" "platform=macOS" "platform=macOS,variant=Mac Catalyst" "platform=visionOS Simulator,name=Apple Vision Pro")
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
musadorakit-xcode-26-1:
name: MusadoraKit Workflow (Xcode 26.1)
environment:
xcode: 26.1
vars:
XCODE_SCHEME: "MusadoraKit"
APP_ID: "Musadora"
when:
changeset:
includes:
- 'Sources'
- 'Tests'
triggering:
<<: *events
scripts:
- name: SwiftLint
script: |
#!/bin/zsh
brew install swiftlint
swiftlint lint --strict
- name: Build Framework
script: |
#!/bin/zsh
declare -a DESTINATIONS=("platform=iOS Simulator,name=iPhone 17" "platform=watchOS Simulator,name=Apple Watch Ultra 2 (49mm)" "platform=tvOS Simulator,name=Apple TV 4K (3rd generation)" "platform=macOS" "platform=macOS,variant=Mac Catalyst" "platform=visionOS Simulator,name=Apple Vision Pro")
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 17" "platform=watchOS Simulator,name=Apple Watch Ultra 2 (49mm)" "platform=tvOS Simulator,name=Apple TV 4K (3rd generation)" "platform=macOS" "platform=macOS,variant=Mac Catalyst" "platform=visionOS Simulator,name=Apple Vision Pro")
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