forked from igorcferreira/GIFImage
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bitrise.yml
76 lines (76 loc) · 2.43 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
75
76
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-13.3.x
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
- git::https://github.com/igorcferreira/bitrise-step-run-spm-test-with-coverage.git@main:
title: Run iOS tests
inputs:
- TEST_NAME: xcode-test-results-ios
- PROJECT_DIR: $BITRISE_SOURCE_DIR
- SDK: iphonesimulator
- DESTINATION: 'platform=iOS Simulator,name=iPhone 8 Plus'
- git::https://github.com/igorcferreira/bitrise-step-run-spm-test-with-coverage.git@main:
title: Run tvOS tests
inputs:
- TEST_NAME: xcode-test-results-tvos
- PROJECT_DIR: $BITRISE_SOURCE_DIR
- SDK: appletvsimulator
- DESTINATION: 'platform=tvOS Simulator,name=Apple TV'
- git::https://github.com/igorcferreira/bitrise-step-run-spm-test-with-coverage.git@main:
title: Run watchOS tests
inputs:
- TEST_NAME: xcode-test-results-watchos
- PROJECT_DIR: $BITRISE_SOURCE_DIR
- SDK: watchsimulator
- DESTINATION: 'platform=watchOS Simulator,name=Apple Watch Series 7 - 41mm'
- deploy-to-bitrise-io@2: {}