Use tox for OSX tests on Travis
@@ -53,8 +53,8 @@ matrix:
- PATH="/Library/Frameworks/Python.framework/Versions/2.7/bin:$PATH"
- PIP=pip
- CIBW_BUILD=cp27-*
- - CIBW_TEST_COMMAND="pytest {project}/tests"
- - CIBW_BEFORE_BUILD="${PIP} install -U pip; ${PIP} install .; $PIP install .[tests]"
+ - CIBW_TEST_COMMAND="pushd {project}; tox tests ; popd"
+ - CIBW_BEFORE_BUILD="${PIP} install -U pip; ${PIP} install tox"
install:
- ${PIP} install cibuildwheel==0.10.0
script:
@@ -65,8 +65,8 @@ matrix:
env:
- PIP=pip2
- CIBW_BUILD=cp34-*
- - CIBW_TEST_COMMAND="pytest {project}/tests"
- - CIBW_BEFORE_BUILD="${PIP} install -U pip; ${PIP} install .; $PIP install .[tests]"
+ - CIBW_TEST_COMMAND="pushd {project}; tox tests ; popd"
+ - CIBW_BEFORE_BUILD="${PIP} install -U pip; ${PIP} install tox"
install:
- ${PIP} install cibuildwheel==0.10.0
script:
@@ -77,8 +77,8 @@ matrix:
env:
- PIP=pip2
- CIBW_BUILD=cp35-*
- - CIBW_TEST_COMMAND="pytest {project}/tests"
- - CIBW_BEFORE_BUILD="${PIP} install -U pip; ${PIP} install .; $PIP install .[tests]"
+ - CIBW_TEST_COMMAND="pushd {project}; tox tests ; popd"
+ - CIBW_BEFORE_BUILD="${PIP} install -U pip; ${PIP} install tox"
install:
- ${PIP} install cibuildwheel==0.10.0
script:
@@ -89,8 +89,8 @@ matrix:
env:
- PIP=pip2
- CIBW_BUILD=cp36-*
- - CIBW_TEST_COMMAND="pytest {project}/tests"
- - CIBW_BEFORE_BUILD="${PIP} install -U pip; ${PIP} install .; $PIP install .[tests]"
+ - CIBW_TEST_COMMAND="pushd {project}; tox tests ; popd"
+ - CIBW_BEFORE_BUILD="${PIP} install -U pip; ${PIP} install tox"
install:
- ${PIP} install cibuildwheel==0.10.0
script:
@@ -101,8 +101,8 @@ matrix:
env:
- PIP=pip2
- CIBW_BUILD=cp37-*
- - CIBW_TEST_COMMAND="pytest {project}/tests"
- - CIBW_BEFORE_BUILD="${PIP} install -U pip; ${PIP} install .; $PIP install .[tests]"
+ - CIBW_TEST_COMMAND="pushd {project}; tox tests ; popd"
+ - CIBW_BEFORE_BUILD="${PIP} install -U pip; ${PIP} install tox"
install:
- ${PIP} install cibuildwheel==0.10.0
script:
