-
Notifications
You must be signed in to change notification settings - Fork 18
/
config.yml
121 lines (104 loc) · 2.26 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
# iOS CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/ios-migrating-from-1-2/ for more details
#
version: 2
jobs:
swiftlint:
docker:
- image: dantoml/swiftlint:latest
steps:
- checkout
- run: swiftlint lint --reporter junit | tee result.xml
- store_artifacts:
path: result.xml
- store_test_results:
path: result.xml
test_iOS:
macos:
xcode: "10.1.0"
steps:
- checkout
- run: fastlane ios test
- store_test_results:
path: fastlane/test_output/
- store_artifacts:
path: ~/Library/Logs/scan
destination: scan-logs
test_tvOS:
macos:
xcode: "10.1.0"
steps:
- checkout
- run: fastlane ios test_tv
- store_test_results:
path: fastlane/test_output/
- store_artifacts:
path: ~/Library/Logs/scan
destination: scan-logs
test_macOS:
macos:
xcode: "10.1.0"
steps:
- checkout
- run: fastlane mac test
- store_test_results:
path: fastlane/test_output/
- store_artifacts:
path: ~/Library/Logs/scan
destination: scan-logs
update_documentation:
macos:
xcode: "10.1.0"
steps:
- run: echo "hello"
update_cocoapods:
macos:
xcode: "10.1.0"
steps:
- run: echo "hello"
tag:
macos:
xcode: "10.1.0"
steps:
- run: echo "hello"
push:
macos:
xcode: "10.1.0"
steps:
- run: echo "hello"
workflows:
version: 2
build-test-and-deploy:
jobs:
- swiftlint
- test_iOS:
requires:
- swiftlint
- test_tvOS:
requires:
- swiftlint
# - test_macOS
- update_cocoapods:
requires:
- test_iOS
# - test_macOS
- test_tvOS
filters:
branches:
only: master
- update_documentation:
requires:
- update_cocoapods
- tag:
requires:
- update_documentation
filters:
branches:
only: master
- push:
requires:
- tag
filters:
branches:
only: master