Refactor tox and ci scripts

Make sure a plain "tox" command works in all platforms without failures,
which facilitates making releases using a "devpi upload/test" workflow

* Fix small flakes failures
* Limit py35 testing to pytest>=2.7, as pytest<2.7 does not work on py35
* pexpect environments only work on Linux platforms and should be skipped on Windows
* Simplify AppVeyor script by running all tox environments: no need to have a build matrix
  because AppVeyor does not execute builds in parallel
* Add all environments to travis.yml, obtained from "tox --listenvs"
This commit is contained in:
Bruno Oliveira
2016-01-30 12:19:52 -02:00
parent 023226840c
commit 96506867d1
5 changed files with 32 additions and 36 deletions

View File

@@ -1,17 +1,7 @@
environment:
matrix:
- PYTHON: "C:\\Python35"
TESTENV: "py35"
- PYTHON: "C:\\Python27"
TESTENV: "py27"
install:
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
- pip install tox setuptools_scm"
- C:\Python35\python -m pip install tox setuptools_scm
build: false # Not a C# project, build stuff at the test step instead.
test_script:
# Build the compiled extension and run the project tests
- tox -e %TESTENV%-pytest27,%TESTENV%-pytest28,readme,flakes
- C:\Python35\python -m tox