我试图让吡喃发布来自AppVeyor的报道报告。我添加了存储库的加密令牌,解释了这里。下面是appveyor.yml文件:
environment:
COVERALLS_REPO_TOKEN:
secure: 2NJ5Ct55cHJ9WEg3xbSqCuv0rdgzzb6pnzOIG5OkMbTndw3wOBrXntWFoQrXiMFi
# this is pytest's token in coveralls.io, encrypted
# using pytestbot account as detailed here:
# https://www.appveyor.com/docs/build-configuration#secure-variables
install:
- echo Installed Pythons
- dir c:\Python*
# install pypy using choco (redirect to a file and write to console in case
# choco install returns non-zero, because choco install python.pypy is too
# noisy)
- choco install python.pypy > pypy-inst.log 2>&1 || (type pypy-inst.log & exit /b 1)
- set PATH=C:\tools\pypy\pypy;%PATH% # so tox can find pypy
- echo PyPy installed
- pypy --version
- C:\Python35\python -m pip install tox
build: false # Not a C# project, build stuff at the test step instead.
test_script:
# - C:\Python35\python -m tox
- C:\Python35\python -m tox -e coveralls # coveralls is not in tox's envlist奇怪的是,有些构建通过了,而另一些则没有。用于在按下上持续集成的GH面板显示,continuous-integration/appveyor/branch的构建按预期传递和发布覆盖范围,但continuous-integration/appveyor/pr构建失败,其中包含以下消息:
You have to provide either repo_token in .coveralls.yml, or launch via Travis or CircleCI
ERROR: InvocationError: 'C:\\projects\\pytest\\.tox\\coveralls\\Scripts\\coveralls.EXE' 有人知道发生了什么事吗?
发布于 2016-02-01 03:28:29
出于安全原因,在PR构建期间不设置安全变量。
https://stackoverflow.com/questions/35117645
复制相似问题