【问题标题】:Appveyor build failureAppveyor 构建失败
【发布时间】:2016-10-26 18:56:19
【问题描述】:

我在 Github 上使用 Appveyor 创建一个构建,使用 devtool https://github.com/atom/atom-keymap。虽然 Travis 构建成功,但 Appveyor 构建仍然出现错误!

【问题讨论】:

    标签: build atom-editor appveyor


    【解决方案1】:

    我不知道真正的根本原因,但我想我可以帮助解决这个问题。基本上,您可以通过 RDP 连接到 AppVeyor VM 并对其进行调试。步骤如下:

    在您的 appveyor.yml 文件中的 - npm run ci 之前插入 - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))

    在 RDP 中运行以下命令:

    cd c:\projects\atom-keymap
    npm run compile
    npm run lint
    

    这将带您进入状态以进行复制和调试(因为 npm run cinpm run compile && npm run lint && npm run test)。

    要获得repro npm run test

    要调试问题,请执行以下操作:

    devtool  --console node_modules/mocha/bin/_mocha --colors spec/helpers/setup.js spec/* --break
    

    (这将让您逐步调试)

    devtool  --console node_modules/mocha/bin/_mocha --colors spec/helpers/setup.js spec/* --watch
    

    (这会让你看到很多错误细节)

    这与npm run test 所做的相同,但没有切换到错误退出和调试选项。

    到目前为止,我自己走这条路,但我对这个 npm 模块的有限知识并没有让我挖掘到根本原因。

    【讨论】:

    • 顺便说一句,我假设这个devtool 命令可以在您的Windows 机器上运行。如果没有,最好先让它在本地工作,然后再尝试在 AppVeyor 上运行...
    • 感谢您的建议。我会试试的。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-12-22
    相关资源
    最近更新 更多