Skip to content

Commit a8e3343

Browse files
committed
Upload tested gem as artifact
1 parent d686ee9 commit a8e3343

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.circleci/config.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,19 @@ jobs:
213213
- store_test_results:
214214
path: test/reports
215215

216+
- run:
217+
name: Rename gem to a consistent name to store artifact
218+
command: |
219+
$Env:PATH = "C:\\Ruby<< parameters.ruby_version >>-x64\\bin;$Env:PATH"
220+
$rubyArchitecture = (ruby -e 'puts RUBY_PLATFORM').Trim()
221+
$gemVersion = (Get-Content VERSION).Trim()
222+
223+
New-Item -Path . -Name "tested_artifact" -ItemType "directory"
224+
Move-Item "artifacts/gems/tiny_tds-$gemVersion-$rubyArchitecture.gem" "tested_artifact"
225+
226+
- store_artifacts:
227+
path: tested_artifact
228+
216229
cross_compile_gem:
217230
parameters:
218231
platform:

0 commit comments

Comments
 (0)