diff options
author | Bruno Oliveira <nicoddemus@gmail.com> | 2016-01-30 20:48:15 -0200 |
---|---|---|
committer | Bruno Oliveira <nicoddemus@gmail.com> | 2016-02-01 17:40:30 -0200 |
commit | 30e61f277700891aa7ce1dd84aef4f6d4421279b (patch) | |
tree | 4d04f6c989462fadfccee366ad9b20cde43697db /appveyor.yml | |
parent | 58af604f821c06955a67df259bbaef85806765c5 (diff) | |
download | pytest-30e61f277700891aa7ce1dd84aef4f6d4421279b.tar.gz |
Test with pypy and enable coveralls in AppVeyor
* Install pypy using chocolatey
* Enable coveralls test environment in AppVeyor
* Suggest maintaining build matrix in .travis.yml by using "tox --listenvs"
Fix #1254
Diffstat (limited to 'appveyor.yml')
-rw-r--r-- | appveyor.yml | 29 |
1 files changed, 19 insertions, 10 deletions
diff --git a/appveyor.yml b/appveyor.yml index 73948b5b6..13d53979b 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,19 +1,28 @@ +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: - - 'set TESTENVS= - flakes, - py26, - py27, - py33, - py34, - py27-xdist, - py35-xdist - ' - - C:\Python35\python -m tox -e "%TESTENVS%" + - C:\Python35\python -m tox + # coveralls is not in tox's envlist, plus for PRs the secure variable + # is not defined so we have to check for it + - if defined COVERALLS_REPO_TOKEN C:\Python35\python -m tox -e coveralls |