mirror of https://github.com/scrapy/scrapy.git
Run tests for PyPy3
This commit is contained in:
parent
9f9edeadfc
commit
f71df6f9ad
|
|
@ -13,6 +13,8 @@ matrix:
|
||||||
env: TOXENV=jessie
|
env: TOXENV=jessie
|
||||||
- python: 2.7
|
- python: 2.7
|
||||||
env: TOXENV=pypy
|
env: TOXENV=pypy
|
||||||
|
- python: 2.7
|
||||||
|
env: TOXENV=pypy3
|
||||||
- python: 3.4
|
- python: 3.4
|
||||||
env: TOXENV=py34
|
env: TOXENV=py34
|
||||||
- python: 3.5
|
- python: 3.5
|
||||||
|
|
@ -30,6 +32,13 @@ install:
|
||||||
virtualenv --python="$PYPY_VERSION/bin/pypy" "$HOME/virtualenvs/$PYPY_VERSION"
|
virtualenv --python="$PYPY_VERSION/bin/pypy" "$HOME/virtualenvs/$PYPY_VERSION"
|
||||||
source "$HOME/virtualenvs/$PYPY_VERSION/bin/activate"
|
source "$HOME/virtualenvs/$PYPY_VERSION/bin/activate"
|
||||||
fi
|
fi
|
||||||
|
if [ "$TOXENV" = "pypy3" ]; then
|
||||||
|
export PYPY_VERSION="pypy3.5-5.9-beta-linux_x86_64-portable"
|
||||||
|
wget "https://bitbucket.org/squeaky/portable-pypy/downloads/${PYPY_VERSION}.tar.bz2"
|
||||||
|
tar -jxf ${PYPY_VERSION}.tar.bz2
|
||||||
|
virtualenv --python="$PYPY_VERSION/bin/pypy3" "$HOME/virtualenvs/$PYPY_VERSION"
|
||||||
|
source "$HOME/virtualenvs/$PYPY_VERSION/bin/activate"
|
||||||
|
fi
|
||||||
- pip install -U tox twine wheel codecov
|
- pip install -U tox twine wheel codecov
|
||||||
|
|
||||||
script: tox
|
script: tox
|
||||||
|
|
|
||||||
6
tox.ini
6
tox.ini
|
|
@ -79,6 +79,12 @@ deps = {[testenv:py34]deps}
|
||||||
basepython = python3.6
|
basepython = python3.6
|
||||||
deps = {[testenv:py34]deps}
|
deps = {[testenv:py34]deps}
|
||||||
|
|
||||||
|
[testenv:pypy3]
|
||||||
|
basepython = pypy3
|
||||||
|
deps = {[testenv:py34]deps}
|
||||||
|
commands =
|
||||||
|
py.test {posargs:scrapy tests}
|
||||||
|
|
||||||
[docs]
|
[docs]
|
||||||
changedir = docs
|
changedir = docs
|
||||||
deps =
|
deps =
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue