Skip to content

Commit fb4c7ab

Browse files
committed
install dev-requirements before run tests
1 parent 6ea16d1 commit fb4c7ab

File tree

5 files changed

+9
-3
lines changed

5 files changed

+9
-3
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ install:
1212
- source terryfy/library_installers.sh
1313
- clean_builds
1414
- get_python_environment macpython $VERSION venv
15-
- pip install --upgrade pip wheel cython
15+
- pip install --upgrade pip wheel
16+
- pip install -r dev-requirements.txt
1617

1718
script:
1819
- python setup.py test

appveyor.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,14 @@ install:
4242
- "SET PATH=%PYTHON%;%PYTHON%\\scripts;%PATH%"
4343
- echo "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x64 > "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\amd64\vcvars64.bat"
4444
- "pip install --disable-pip-version-check --user --upgrade pip wheel"
45-
- "pip install --user cython"
45+
- "pip install --user -r requirements.txt"
4646

4747
build_script:
48+
- "cython bencoder.pyx"
4849
- "python setup.py install"
4950

5051
test_script:
52+
- "del bencoder.c"
5153
- "python setup.py test"
5254

5355
on_success:

dev-requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
pytest
2+
pytest-cov
23
cython
34
tox

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,5 +67,5 @@
6767
setup_requires=[
6868
'pytest-runner',
6969
],
70-
tests_require=['pytest', 'pytest-cov'],
70+
tests_require=['cython', 'pytest', 'pytest-cov'],
7171
)

tox.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@ envlist = py26, py27, py33, py34, py35, pypy
33

44
[testenv]
55
commands = python setup.py test
6+
deps =
7+
cython

0 commit comments

Comments
 (0)