Skip to content

Commit e18b3c3

Browse files
committed
Run tests on PyPy3 too.
1 parent 4e56fd7 commit e18b3c3

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ matrix:
1212
env:
1313
- TOX_ENV=py35
1414
before_install:
15-
- sudo apt-get install pypy
15+
- sudo apt-get install pypy pypy3
1616
install:
1717
- pip install tox
1818
script:

tox.ini

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist=py26,py27,py32,py33,py34,py35,pypy
2+
envlist=py26,py27,py32,py33,py34,py35,pypy,pypy3
33

44
[testenv]
55
deps=
@@ -44,3 +44,12 @@ commands=
4444
cp -r {toxinidir}/tests/ tests/
4545
2to3 -w --no-diffs -n tests/
4646
py.test --cov={envdir}/lib/python3.5/site-packages/sqlparse/ tests
47+
48+
[testenv:pypy3]
49+
changedir={envdir}
50+
commands=
51+
sqlformat --version # Sanity check.
52+
rm -rf tests/
53+
cp -r {toxinidir}/tests/ tests/
54+
2to3 -w --no-diffs -n tests/
55+
py.test --cov={envdir}/site-packages/sqlparse/ tests

0 commit comments

Comments
 (0)