Skip to content

Commit 8825fec

Browse files
committed
Move tailing log file to end of build lifecycle
AppVeyor `after_test` scripts only run if tests exit successfully. If tests fail, the scripts are never run. We are mainly interested in tailing log files when tests fail. `on_finish` scripts run regardless of whether a build succeeds.
1 parent 1422252 commit 8825fec

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

appveyor.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,11 +134,12 @@ test_script:
134134
- cmd: 'C:\MinGW\msys\1.0\bin\sh --login -c " /c/projects/stdlib/tools/ci/appveyor/script $BUILD_TASK"'
135135

136136

137-
after_test:
137+
# Scripts run after a build success or failure:
138+
on_finish:
138139
# Rely on [MSYS][1], a collection of GNU utilities including `make`, being installed in a `1.0` directory.
139140
#
140141
# [1]: http://www.mingw.org/wiki/MSYS
141-
- cmd: 'C:\MinGW\msys\1.0\bin\sh --login -c " /c/projects/stdlib/tools/ci/appveyor/after_script"'
142+
- cmd: 'C:\MinGW\msys\1.0\bin\sh --login -c " /c/projects/stdlib/tools/ci/appveyor/on_finish"'
142143

143144

144145
notifications:
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
22
#
3-
# Build script to run at the end of the AppVeyor test [lifecycle][1].
3+
# Build script to run at the end of the AppVeyor build [lifecycle][1].
44
#
55
# [1]: https://www.appveyor.com/docs/appveyor-yml/
66

0 commit comments

Comments
 (0)