在 appveyor 中的命令失败后继续

Continue after a failing command in appveyor

在 appveyor 中我使用语句: - initexmf --admin --force --mklinks 但由于出现问题,它给出了消息:

initexmf --admin --force --mklinks
Sorry, but "MiKTeX Configuration Utility" did not succeed for the following reason:
  Script configuration file not found.
The log file hopefully contains the information to get MiKTeX going again:
  C:\ProgramData\MiKTeX.9\miktex\log\initexmf_admin.log
The system cannot find the path specified.
Command exited with code 1

由于错误代码,进程终止,我不能再type C:\ProgramData\MiKTeX.9\miktex\log\initexmf_admin.log,所以有点难以调试...

问题:

到运行失败脚本使用on_failure部分,例如将initexmf_admin.log推送到工件:

on_failure:
- appveyor PushArtifact C:\ProgramData\MiKTeX.9\miktex\log\initexmf_admin.log