mirror of
https://github.com/davidhalter/parso.git
synced 2025-12-06 04:44:29 +08:00
Remove tox
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,7 +1,6 @@
|
||||
*~
|
||||
*.sw?
|
||||
*.pyc
|
||||
.tox
|
||||
.coveralls.yml
|
||||
.coverage
|
||||
/build/
|
||||
|
||||
19
.travis.yml
19
.travis.yml
@@ -10,14 +10,15 @@ matrix:
|
||||
- python: nightly
|
||||
include:
|
||||
- python: 3.8
|
||||
env: TOXENV=py38-coverage
|
||||
script:
|
||||
- 'pip install coverage'
|
||||
- 'coverage run -m pytest'
|
||||
- 'coverage report'
|
||||
after_script:
|
||||
- |
|
||||
pip install --quiet coveralls
|
||||
coveralls
|
||||
install:
|
||||
- pip install --quiet tox-travis
|
||||
- pip install .[testing]
|
||||
script:
|
||||
- tox
|
||||
after_script:
|
||||
- |
|
||||
if [ "${TOXENV%-coverage}" == "$TOXENV" ]; then
|
||||
pip install --quiet coveralls;
|
||||
coveralls;
|
||||
fi
|
||||
- pytest
|
||||
|
||||
@@ -5,7 +5,6 @@ include AUTHORS.txt
|
||||
include .coveragerc
|
||||
include conftest.py
|
||||
include pytest.ini
|
||||
include tox.ini
|
||||
include parso/python/grammar*.txt
|
||||
recursive-include test *
|
||||
recursive-include docs *
|
||||
|
||||
@@ -23,7 +23,7 @@ cd $PROJECT_NAME
|
||||
git checkout $BRANCH
|
||||
|
||||
# Test first.
|
||||
tox
|
||||
pytest
|
||||
|
||||
# Create tag
|
||||
tag=v$(python3 -c "import $PROJECT_NAME; print($PROJECT_NAME.__version__)")
|
||||
|
||||
@@ -21,18 +21,18 @@ The deprecation process is as follows:
|
||||
Testing
|
||||
-------
|
||||
|
||||
The test suite depends on ``tox`` and ``pytest``::
|
||||
The test suite depends on ``pytest``::
|
||||
|
||||
pip install tox pytest
|
||||
pip install pytest
|
||||
|
||||
To run the tests for all supported Python versions::
|
||||
To run the tests use the following::
|
||||
|
||||
tox
|
||||
pytest
|
||||
|
||||
If you want to test only a specific Python version (e.g. Python 3.9), it's as
|
||||
easy as::
|
||||
|
||||
tox -e py39
|
||||
python3.9 -m pytest
|
||||
|
||||
Tests are also run automatically on `Travis CI
|
||||
<https://travis-ci.org/davidhalter/parso/>`_.
|
||||
|
||||
14
tox.ini
14
tox.ini
@@ -1,14 +0,0 @@
|
||||
[tox]
|
||||
envlist = {py36,py37,py38}
|
||||
[testenv]
|
||||
extras = testing
|
||||
deps =
|
||||
coverage: coverage
|
||||
setenv =
|
||||
# https://github.com/tomchristie/django-rest-framework/issues/1957
|
||||
# tox corrupts __pycache__, solution from here:
|
||||
PYTHONDONTWRITEBYTECODE=1
|
||||
coverage: TOX_TESTENV_COMMAND=coverage run -m pytest
|
||||
commands =
|
||||
{env:TOX_TESTENV_COMMAND:pytest} {posargs}
|
||||
coverage: coverage report
|
||||
Reference in New Issue
Block a user