Skip to content

Commit 7bd963f

Browse files
committed
chore(tests): use on_finish to always keep appveyor artifacts
after_tests only runs if the tests succeed. If there is an error then we need to use on_finish per http://help.appveyor.com/discussions/problems/3543-cannot-save-test-artifacts-when-tests-fail
1 parent 0d847b0 commit 7bd963f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

appveyor.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,12 @@ test_script:
1717
# run tests
1818
- npm test
1919

20-
after_test:
20+
on_finish:
2121
- ps: $root = Resolve-Path .\test\artifacts; [IO.Directory]::GetFiles($root.Path, '*.*', 'AllDirectories') | % { Push-AppveyorArtifact $_ -FileName $_.Substring($root.Path.Length + 1) -DeploymentName to-publish }
2222

2323
artifacts:
2424
- path: test/artifacts/**/*
2525
name: test artifacts
2626

2727
# Don't actually build.
28-
build: off
29-
28+
build: off

0 commit comments

Comments
 (0)