-
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathbitrise.yml
42 lines (40 loc) · 1.39 KB
/
bitrise.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
---
format_version: '11'
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
project_type: other
workflows:
primary:
steps:
- activate-ssh-key@4:
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
- git-clone@8: {}
- script@1:
inputs:
- content: |-
#!/usr/bin/env bash
set -e
set -o pipefail
set -x
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
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
meta:
bitrise.io:
stack: osx-xcode-14.3.x-ventura
trigger_map:
- push_branch: main
workflow: primary
- pull_request_source_branch: "*"
workflow: primary
pull_request_target_branch: main