Skip to content
This repository was archived by the owner on Aug 7, 2024. It is now read-only.

Commit 1430bcb

Browse files
committed
update tox environment and tweak Makefile and circle.yml file
1 parent 2f222c7 commit 1430bcb

File tree

6 files changed

+32
-28
lines changed

6 files changed

+32
-28
lines changed

.travis.yml

-18
This file was deleted.

Makefile

+11-7
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,15 @@ help:
88
@echo " test run tests"
99
@echo " coverage run tests with code coverage"
1010

11-
tox:
12-
export PYENV_VERSION="2.7.11:3.5.1:pypy-5.0.0" && tox
13-
1411
env:
15-
pip install -r requirements.txt
12+
pip install -Ur requirements.txt
1613

1714
dev: env
18-
pip install -r requirements.testing.txt
15+
pip install -Ur requirements.testing.txt
16+
pyenv install -s 2.7.11
17+
pyenv install -s 3.5.2
18+
pyenv install -s pypy-5.3
19+
pyenv local 2.7.11 3.5.2 pypy-5.3
1920

2021
info:
2122
@python --version
@@ -35,15 +36,18 @@ docs:
3536
lint:
3637
flake8 twitter > violations.flake8.txt
3738

38-
test:
39+
test: lint
3940
python setup.py test
4041

42+
tox: clean
43+
export PYENV_VERSION="2.7.11:3.5.1:pypy-5.0.0" && tox
44+
4145
coverage: clean
4246
coverage run --source=twitter setup.py test --addopts "--ignore=venv"
4347
coverage html
4448
coverage report
4549

46-
ci: info coverage
50+
ci: tox coverage
4751
CODECOV_TOKEN=`cat .codecov-token` codecov
4852

4953
build: clean

circle.yml

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
dependencies:
32
override:
43
- pip install -U pip

pytest.ini

+8
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,11 @@ norecursedirs=
44
*/python?.?/*
55
*/site-packages/*
66
.tox/*
7+
8+
with-coverage = true
9+
cover-package = twitter
10+
cover-html = true
11+
cover-html-dir = htmlcov
12+
cover-erase = true
13+
cover-inclusive = true
14+
cover-branches = true

requirements.testing.txt

+2
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,5 @@ coverage
1414
coveralls
1515
codecov
1616
check-manifest
17+
tox
18+
tox-pyenv

tox.ini

+11-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,18 @@
11
[tox]
2-
envlist = py27, py35
2+
envlist = py27,py35,pypy,pypy3,codestyle
3+
skip_missing_interpreters = True
34

45
[testenv]
5-
deps = -rrequirements.testing.txt
6+
deps = -Ur{toxinidir}/requirements.txt
7+
-Ur{toxinidir}/requirements.testing.txt
8+
69
commands = make test
10+
711
whitelist_externals = /bin/bash
812
make
13+
setenv =
14+
PYTHONWARNINGS=always::DeprecationWarning
915

16+
[testenv:codestyle]
17+
deps = pycodestyle
18+
commands = pycodestyle --ignore=E501 twitter tests

0 commit comments

Comments
 (0)