1
1
version : 2
2
2
jobs :
3
- build-iOS-Swift-4.2 :
3
+ build-iOS-Swift-5.0 :
4
4
macos :
5
- xcode : " 10.0 .0"
5
+ xcode : " 10.2 .0"
6
6
environment :
7
7
LC_ALL : en_US.UTF-8
8
8
LANG : en_US.UTF-8
9
+ HOMEBREW_LOGS : ~/homebrew-logs
10
+ HOMEBREW_TEMP : ~/homebrew-temp
11
+ HOMEBREW_NO_AUTO_UPDATE : 1
9
12
steps :
10
13
- checkout
11
14
- run : |
@@ -30,19 +33,22 @@ jobs:
30
33
- Carthage/Build
31
34
- store_test_results :
32
35
path : fastlane/test_output
33
- build-iOS-Swift-4.0 :
36
+ build-iOS-Swift-4.2 :
34
37
macos :
35
- xcode : " 10.0 .0"
38
+ xcode : " 10.2 .0"
36
39
environment :
37
40
LC_ALL : en_US.UTF-8
38
41
LANG : en_US.UTF-8
42
+ HOMEBREW_LOGS : ~/homebrew-logs
43
+ HOMEBREW_TEMP : ~/homebrew-temp
44
+ HOMEBREW_NO_AUTO_UPDATE : 1
39
45
steps :
40
46
- checkout
41
47
- run : |
42
48
brew install swiftlint
43
49
bundle install --without=development
44
50
grep -lR "shouldUseLaunchSchemeArgsEnv" *.* --null | xargs -0 sed -i '' -e 's/shouldUseLaunchSchemeArgsEnv = "YES"/shouldUseLaunchSchemeArgsEnv = "YES" codeCoverageEnabled = "YES"/g'
45
- sed -i "" 's/SWIFT_VERSION = 4.2 /SWIFT_VERSION = 4.0 /g' "JWTDecode.xcodeproj/project.pbxproj"
51
+ sed -i "" 's/SWIFT_VERSION = 5.0 /SWIFT_VERSION = 4.2 /g' "JWTDecode.xcodeproj/project.pbxproj"
46
52
- run :
47
53
name : Bootstrap
48
54
command : bundle exec fastlane ios bootstrap
@@ -53,24 +59,30 @@ jobs:
53
59
SCHEME : JWTDecode-iOS
54
60
DEVICE : iPhone 8
55
61
FASTLANE_EXPLICIT_OPEN_SIMULATOR : 2
62
+ - run : |
63
+ bash <(curl -s https://codecov.io/bash) -J 'JWTDecode'
56
64
- save_cache :
57
65
key : dependency-cache
58
66
paths :
59
67
- Carthage/Build
60
- build-iOS-Swift-3.0 :
68
+ - store_test_results :
69
+ path : fastlane/test_output
70
+ build-iOS-Swift-4.0 :
61
71
macos :
62
- xcode : " 9.4.1 "
72
+ xcode : " 10.2.0 "
63
73
environment :
64
74
LC_ALL : en_US.UTF-8
65
75
LANG : en_US.UTF-8
76
+ HOMEBREW_LOGS : ~/homebrew-logs
77
+ HOMEBREW_TEMP : ~/homebrew-temp
78
+ HOMEBREW_NO_AUTO_UPDATE : 1
66
79
steps :
67
80
- checkout
68
81
- run : |
69
82
brew install swiftlint
70
- sudo gem install bundler
71
83
bundle install --without=development
72
84
grep -lR "shouldUseLaunchSchemeArgsEnv" *.* --null | xargs -0 sed -i '' -e 's/shouldUseLaunchSchemeArgsEnv = "YES"/shouldUseLaunchSchemeArgsEnv = "YES" codeCoverageEnabled = "YES"/g'
73
- sed -i "" 's/SWIFT_VERSION = 4.2 /SWIFT_VERSION = 3.3 /g' "JWTDecode.xcodeproj/project.pbxproj"
85
+ sed -i "" 's/SWIFT_VERSION = 5.0 /SWIFT_VERSION = 4.0 /g' "JWTDecode.xcodeproj/project.pbxproj"
74
86
- run :
75
87
name : Bootstrap
76
88
command : bundle exec fastlane ios bootstrap
@@ -85,18 +97,54 @@ jobs:
85
97
key : dependency-cache
86
98
paths :
87
99
- Carthage/Build
100
+ build-macOS-Swift-5.0 :
101
+ macos :
102
+ xcode : " 10.2.0"
103
+ environment :
104
+ LC_ALL : en_US.UTF-8
105
+ LANG : en_US.UTF-8
106
+ HOMEBREW_LOGS : ~/homebrew-logs
107
+ HOMEBREW_TEMP : ~/homebrew-temp
108
+ HOMEBREW_NO_AUTO_UPDATE : 1
109
+ steps :
110
+ - checkout
111
+ - run : |
112
+ brew install swiftlint
113
+ bundle install --without=development
114
+ grep -lR "shouldUseLaunchSchemeArgsEnv" *.* --null | xargs -0 sed -i '' -e 's/shouldUseLaunchSchemeArgsEnv = "YES"/shouldUseLaunchSchemeArgsEnv = "YES" codeCoverageEnabled = "YES"/g'
115
+ - run :
116
+ name : Bootstrap
117
+ command : carthage bootstrap --platform mac
118
+ - run :
119
+ name : Setup Keychain
120
+ command : |
121
+ security create-keychain -p circle cikeychain
122
+ security list-keychains -d user -s "/Users/distiller/Library/Keychains/xcode.keychain-db" /Users/distiller/Library/Keychains/cikeychain-db
123
+ security default-keychain -s /Users/distiller/Library/Keychains/cikeychain-db
124
+ security unlock-keychain -p circle "/Users/distiller/Library/Keychains/cikeychain-db"
125
+ - run :
126
+ name : Run test suite
127
+ command : xcodebuild test -scheme JWTDecode-OSX -destination 'platform=macOS,arch=x86_64' | xcpretty
128
+ - save_cache :
129
+ key : dependency-cache
130
+ paths :
131
+ - Carthage/Build
88
132
build-macOS-Swift-4.2 :
89
133
macos :
90
- xcode : " 10.0 .0"
134
+ xcode : " 10.2 .0"
91
135
environment :
92
136
LC_ALL : en_US.UTF-8
93
137
LANG : en_US.UTF-8
138
+ HOMEBREW_LOGS : ~/homebrew-logs
139
+ HOMEBREW_TEMP : ~/homebrew-temp
140
+ HOMEBREW_NO_AUTO_UPDATE : 1
94
141
steps :
95
142
- checkout
96
143
- run : |
97
144
brew install swiftlint
98
145
bundle install --without=development
99
146
grep -lR "shouldUseLaunchSchemeArgsEnv" *.* --null | xargs -0 sed -i '' -e 's/shouldUseLaunchSchemeArgsEnv = "YES"/shouldUseLaunchSchemeArgsEnv = "YES" codeCoverageEnabled = "YES"/g'
147
+ sed -i "" 's/SWIFT_VERSION = 5.0/SWIFT_VERSION = 4.2/g' "JWTDecode.xcodeproj/project.pbxproj"
100
148
- run :
101
149
name : Bootstrap
102
150
command : carthage bootstrap --platform mac
@@ -114,18 +162,47 @@ jobs:
114
162
key : dependency-cache
115
163
paths :
116
164
- Carthage/Build
165
+ build-tvOS-Swift-5.0 :
166
+ macos :
167
+ xcode : " 10.2.0"
168
+ environment :
169
+ LC_ALL : en_US.UTF-8
170
+ LANG : en_US.UTF-8
171
+ HOMEBREW_LOGS : ~/homebrew-logs
172
+ HOMEBREW_TEMP : ~/homebrew-temp
173
+ HOMEBREW_NO_AUTO_UPDATE : 1
174
+ steps :
175
+ - checkout
176
+ - run : |
177
+ brew install swiftlint
178
+ bundle install --without=development
179
+ grep -lR "shouldUseLaunchSchemeArgsEnv" *.* --null | xargs -0 sed -i '' -e 's/shouldUseLaunchSchemeArgsEnv = "YES"/shouldUseLaunchSchemeArgsEnv = "YES" codeCoverageEnabled = "YES"/g'
180
+ - run :
181
+ name : Bootstrap
182
+ command : carthage bootstrap --platform tvOS
183
+ - run :
184
+ name : Run test suite
185
+ command : xcodebuild test -scheme JWTDecode-tvOS -destination 'platform=tvOS Simulator,name=Apple TV' | xcpretty
186
+ - save_cache :
187
+ key : dependency-cache
188
+ paths :
189
+ - Carthage/Build
117
190
build-tvOS-Swift-4.2 :
118
191
macos :
119
- xcode : " 10.0 .0"
192
+ xcode : " 10.2 .0"
120
193
environment :
121
194
LC_ALL : en_US.UTF-8
122
195
LANG : en_US.UTF-8
196
+ HOMEBREW_LOGS : ~/homebrew-logs
197
+ HOMEBREW_TEMP : ~/homebrew-temp
198
+ HOMEBREW_NO_AUTO_UPDATE : 1
123
199
steps :
124
200
- checkout
125
201
- run : |
126
202
brew install swiftlint
127
203
bundle install --without=development
128
204
grep -lR "shouldUseLaunchSchemeArgsEnv" *.* --null | xargs -0 sed -i '' -e 's/shouldUseLaunchSchemeArgsEnv = "YES"/shouldUseLaunchSchemeArgsEnv = "YES" codeCoverageEnabled = "YES"/g'
205
+ sed -i "" 's/SWIFT_VERSION = 5.0/SWIFT_VERSION = 4.2/g' "JWTDecode.xcodeproj/project.pbxproj"
129
206
- run :
130
207
name : Bootstrap
131
208
command : carthage bootstrap --platform tvOS
@@ -141,8 +218,10 @@ workflows:
141
218
version : 2
142
219
build :
143
220
jobs :
221
+ - build-iOS-Swift-5.0
144
222
- build-iOS-Swift-4.2
145
223
- build-iOS-Swift-4.0
146
- - build-iOS -Swift-3 .0
224
+ - build-macOS -Swift-5 .0
147
225
- build-macOS-Swift-4.2
226
+ - build-tvOS-Swift-5.0
148
227
- build-tvOS-Swift-4.2
0 commit comments