Continue after a failing command in appveyor

非 Y 不嫁゛ 提交于 2020-02-25 04:18:25

问题


In appveyor I use the statement: - initexmf --admin --force --mklinks but due to a problem it gives the message:

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\2.9\miktex\log\initexmf_admin.log
The system cannot find the path specified.
Command exited with code 1

due to the error code the process terminates and I cannot type the C:\ProgramData\MiKTeX\2.9\miktex\log\initexmf_admin.log anymore, so a bit hard to debug ...

questions:

  • How to continue after an error
  • How to stop after the outputting the file (exit 1 ?)

回答1:


To run a script on failure use on_failure section, for example to push initexmf_admin.log to artifacts:

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


来源:https://stackoverflow.com/questions/59730937/continue-after-a-failing-command-in-appveyor

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!