-
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathcodemagic.yaml
42 lines (41 loc) · 1.37 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
39
40
41
42
workflows:
default-workflow:
name: Test
max_build_duration: 120
instance_type: mac_mini_m1
environment:
xcode: 14.3
triggering:
events:
- push
- pull_request
branch_patterns:
- pattern: "*"
include: true
source: true
- pattern: excluded-target
include: false
source: false
- pattern: included-source
include: true
source: true
cancel_previous_builds: false
scripts:
- name: Install pre-release Swift toolchain
script: |
version=$(cat .swift-version)
file_name=$version-osx.pkg
branch=swift-5.9-branch
wget https://download.swift.org/$branch/xcode/$version/$file_name
xattr -dr com.apple.quarantine $file_name
installer -pkg $file_name -target CurrentUserHomeDirectory
- name: Test
script: |
export TOOLCHAINS=swift
swift -version
swift test -Xswiftc -Xfrontend -Xswiftc -dump-macro-expansions --enable-code-coverage
xcrun llvm-cov report \
$(swift build --show-bin-path)/SwiftPowerAssertPackageTests.xctest/Contents/MacOS/SwiftPowerAssertPackageTests \
-instr-profile=$(swift build --show-bin-path)/codecov/default.profdata \
-ignore-filename-regex=".build|Tests" \
-use-color