43
43
# run tests!
44
44
- run : make build
45
45
46
- # upload coverage
47
- # - run: out/codecov-linux -f coverage/cobertura-coverage.xml -F build
48
-
49
46
# Persist the specified paths (workspace/echo-output) into the workspace for use in downstream job.
50
47
- persist_to_workspace :
51
48
# Must be an absolute path, or relative path from working_directory. This is a directory on the container which is
56
53
- out
57
54
- coverage
58
55
56
+ build-windows :
57
+ executor : win/default
58
+ steps :
59
+ - checkout
60
+ - attach_workspace :
61
+ # Must be absolute path or relative path from working_directory
62
+ at : .
63
+ - run :
64
+ name : Build Windows Binary
65
+ command : |
66
+ npm ci
67
+ npm run build-windows
68
+
69
+ - persist_to_workspace :
70
+ root : .
71
+ paths :
72
+ - out
73
+ - coverage
74
+
59
75
test-linux :
60
76
docker :
61
77
# specify the version you desire here
@@ -68,54 +84,145 @@ jobs:
68
84
- run :
69
85
name : Run Linux binary (dry run)
70
86
command : |
71
- out/codecov-linux -F linux -d -Z
87
+ out/codecov-linux -F linux -d -Z > output_linux.txt
72
88
- run :
73
89
name : Run Linux binary (upload)
74
90
command : |
75
91
out/codecov-linux -F linux -Z
76
92
93
+ - persist_to_workspace :
94
+ root : .
95
+ paths :
96
+ - output_linux.txt
97
+
98
+ test-linux-without-git :
99
+ docker :
100
+ - image : circleci/node:10.16.3
101
+ steps :
102
+ - attach_workspace :
103
+ # TODO: Determine why we use the cwd on Linex and not on other operating systems.
104
+ at : .
105
+ - run :
106
+ name : Run Linux binary (dry run)
107
+ command : |
108
+ out/codecov-linux -F linux-without-git -d -Z > output_linux_without_git.txt
109
+ - run :
110
+ name : Run Linux binary (upload)
111
+ command : |
112
+ out/codecov-linux -F linux-without-git -Z
113
+
114
+ - persist_to_workspace :
115
+ root : .
116
+ paths :
117
+ - output_linux.txt
118
+
77
119
test-macos :
78
- macos : # indicate that we are using the macOS executor
79
- xcode : " 10.0.0" # indicate our selected version of Xcode
80
- steps : # a series of commands to run
120
+ macos :
121
+ xcode : " 10.0.0"
122
+ steps :
81
123
- checkout
82
124
- attach_workspace :
83
125
at : .
84
126
- run :
85
127
name : Run MacOS binary (dry-run)
86
128
command : |
87
- out/codecov-macos -F macos -d -Z
129
+ out/codecov-macos -F macos -d -Z > output_osx.txt
88
130
- run :
89
- # run our tests using xcode's cli tool `xcodebuild`
90
131
name : Run MacOS binary (upload)
91
132
command : |
92
133
out/codecov-macos -F macos -Z
93
134
135
+ - persist_to_workspace :
136
+ root : .
137
+ paths :
138
+ - output_osx.txt
139
+
140
+ test-macos-without-git :
141
+ macos :
142
+ xcode : " 10.0.0"
143
+ steps :
144
+ - attach_workspace :
145
+ at : .
146
+ - run :
147
+ name : Run MacOS binary (dry-run)
148
+ command : |
149
+ out/codecov-macos -F macos-without-git -d > output_osx_without_git.txt
150
+ - run :
151
+ name : Run MacOS binary (upload)
152
+ command : |
153
+ out/codecov-macos -F macos-without-git
154
+
155
+ - persist_to_workspace :
156
+ root : .
157
+ paths :
158
+ - output_osx.txt
159
+
94
160
test-windows :
95
161
executor : win/default
96
162
steps :
97
163
- checkout
98
164
- attach_workspace :
99
- # Must be absolute path or relative path from working_directory
100
165
at : .
101
166
- run :
102
- name : Build Windows Binary
167
+ name : Run Windows binary (dry-run)
103
168
command : |
104
- npm ci
105
- npm run build-windows
169
+ .\out\codecov.exe -F windows -d -Z > output_win.txt
170
+ shell : cmd.exe
171
+ - run :
172
+ name : Run Windows binary (upload)
173
+ command : |
174
+ .\out\codecov.exe -F windows -Z
175
+ shell : cmd.exe
176
+
177
+ - persist_to_workspace :
178
+ root : .
179
+ paths :
180
+ - output_win.txt
181
+
182
+ test-windows-without-git :
183
+ executor : win/default
184
+ steps :
185
+ - attach_workspace :
186
+ # Must be absolute path or relative path from working_directory
187
+ at : .
106
188
- run :
107
189
name : Run Windows binary (dry-run)
108
190
command : |
109
- .\out\codecov.exe -F windows -d -Z > output .txt
191
+ .\out\codecov.exe -F windows-without-git -d > output_win_without_git .txt
110
192
shell : cmd.exe
111
193
- run :
112
194
name : Run Windows binary (upload)
113
195
command : |
114
- .\out\codecov.exe -F windows -Z
196
+ .\out\codecov.exe -F windows-without-git
115
197
shell : cmd.exe
116
198
199
+ - persist_to_workspace :
200
+ root : .
201
+ paths :
202
+ - output_win_without_git.txt
203
+
204
+ review :
205
+ docker :
206
+ - image : circleci/node:10.16.3
207
+ steps :
208
+ - attach_workspace :
209
+ at : .
210
+ - store_artifacts :
211
+ path : coverage
212
+ - store_artifacts :
213
+ path : out
117
214
- store_artifacts :
118
- path : output.txt
215
+ path : output_linux.txt
216
+ - store_artifacts :
217
+ path : output_linux_without_git.txt
218
+ - store_artifacts :
219
+ path : output_osx.txt
220
+ - store_artifacts :
221
+ path : output_osx_without_git.txt
222
+ - store_artifacts :
223
+ path : output_win.txt
224
+ - store_artifacts :
225
+ path : output_win_without_git.txt
119
226
120
227
# TODO: add test runs for each binary outside of a git project
121
228
@@ -125,12 +232,29 @@ workflows:
125
232
" Build and Test " :
126
233
jobs :
127
234
- build
235
+ - build-windows :
236
+ requires :
237
+ - build
128
238
- test-linux :
129
239
requires :
130
240
- build
241
+ - test-linux-without-git :
242
+ requires :
243
+ - test-linux
131
244
- test-macos :
132
245
requires :
133
246
- build
247
+ - test-macos-without-git :
248
+ requires :
249
+ - test-macos
134
250
- test-windows :
135
251
requires :
136
- - build
252
+ - build-windows
253
+ - test-windows-without-git :
254
+ requires :
255
+ - test-windows
256
+ - review :
257
+ requires :
258
+ - test-linux-without-git
259
+ - test-macos-without-git
260
+ - test-windows-without-git
0 commit comments