-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.yml
68 lines (58 loc) · 1.7 KB
/
config.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
version: 2.1
orbs:
ios: kevnm67/ios-pipelines@dev:alpha
slack: circleci/[email protected]
ios_contexts: &ios_contexts [iOS, slack]
install_dependencies: &install_dependencies
pretest_steps:
- run: |
make setup
run_tests: &run_tests
ios/test:
name: test
context: *ios_contexts
with_spm: true
lane: test_iphone_pro
cc_prefix: >
format-coverage ./fastlane/test_output/cobertura.xml -t cobertura -d;./cc-test-reporter upload-coverage
<<: *install_dependencies
post-steps:
- slack/notify:
event: fail
template: basic_fail_1
requires: [prepare]
branch_filters: &branch_filters [main, /^hotfix.*/, /^release\/.*/]
deploy_filters: &deploy_filters
branches:
only: *branch_filters
tags:
only: /.*/
#############
# workflows #
#############
workflows:
build-and-test:
jobs:
- ios/run_with_setup:
name: prepare
context: *ios_contexts
scripts:
- run: bundle exec danger
filters:
branches:
ignore: *branch_filters
- <<: *run_tests
build-test-deploy:
jobs:
- ios/run_with_setup:
name: prepare
context: *ios_contexts
filters:
branches:
only: *branch_filters
- <<: *run_tests
- slack/on-hold:
channel: ios-builds
context: *ios_contexts
requires: [test]
filters: *deploy_filters