-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbitrise.yml
74 lines (74 loc) · 2.37 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
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
format_version: "11"
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
project_type: other
app:
envs:
- WORKSPACE_PATH: $BITRISE_SOURCE_DIR/.swiftpm/xcode/package.xcworkspace
opts:
is_expand: true
- BUILD_OPTIONS: -enableCodeCoverage YES
opts:
is_expand: true
- BITRISE_SCHEME: GIFImage
opts:
is_expand: true
meta:
bitrise.io:
stack: osx-xcode-15.2.x
machine_type_id: g2-m1.4core
trigger_map:
- push_branch: main
workflow: build
- pull_request_source_branch: '*'
pull_request_target_branch: main
workflow: test
workflows:
build:
steps:
- activate-ssh-key@4:
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
- git-clone@6: {}
- script@1:
title: Build macos artefact
inputs:
- content: |-
#!/usr/bin/env bash
# fail if any commands fails
set -e
# debug log
set -x
swift package reset
swift build -v
- deploy-to-bitrise-io@2: {}
test:
steps:
- activate-ssh-key@4:
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
- git-clone@6: {}
- swiftlint-extended@1:
inputs:
- linting_path: $BITRISE_SOURCE_DIR
- git::https://github.com/igorcferreira/bitrise-step-run-spm-test-with-coverage.git@main:
title: Run macOS tests
inputs:
- TEST_NAME: xcode-test-results-macos
- PROJECT_DIR: $BITRISE_SOURCE_DIR
- xcode-test@4:
title: iOS Tests
inputs:
- project_path: $BITRISE_SOURCE_DIR/Package.swift
- xcpretty_options: --color --report html --output "${BITRISE_DEPLOY_DIR}/xcode-test-results-iOS.html"
- destination: platform=iOS Simulator,name=iPhone 8 Plus
- xcode-test@4:
title: watchOS Tests
inputs:
- project_path: $BITRISE_SOURCE_DIR/Package.swift
- xcpretty_options: --color --report html --output "${BITRISE_DEPLOY_DIR}/xcode-test-results-watchOS.html"
- destination: platform=watchOS Simulator,name=Apple Watch Series 7 (41mm)
- xcode-test@4:
title: tvOS Tests
inputs:
- project_path: $BITRISE_SOURCE_DIR/Package.swift
- xcpretty_options: --color --report html --output "${BITRISE_DEPLOY_DIR}/xcode-test-results-tvOS.html"
- destination: platform=tvOS Simulator,name=Apple TV
- deploy-to-bitrise-io@2: {}