Skip to content

Commit 16eb997

Browse files
committed
Add automated testing
1 parent 78138d7 commit 16eb997

File tree

4 files changed

+45
-0
lines changed

4 files changed

+45
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,6 @@ dist
33
*.egg-info
44
*.pyc
55
.cache
6+
/.env/
7+
/.tox/
8+
/.coverage

.travis.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
3+
sudo: false
4+
5+
language: python
6+
7+
before_script:
8+
- pip install tox
9+
10+
script: tox
11+
12+
notifications:
13+
email: false
14+
15+
matrix:
16+
include:
17+
- python: "2.7"
18+
env: TOXENV=py27
19+
- python: "3.4"
20+
env: TOXENV=py34
21+
- python: "3.6"
22+
env: TOXENV=flake8
23+
allow_failures:
24+
- python: "3.6"
25+
env: TOXENV=flake8

requirements/local.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
-r base.txt
22

33
pytest>=2,<3
4+
pytest-cov>=2,<3
45
vcrpy>=1,<2

tox.ini

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[tox]
2+
envlist = py27,py34,flake8
3+
4+
[testenv]
5+
deps = -rrequirements/local.txt
6+
commands = py.test --ignore=build -v --cov=agentarchives --cov-report=term-missing
7+
8+
[testenv:flake8]
9+
basepython = python3
10+
skip_install = true
11+
deps = flake8
12+
commands = flake8 .
13+
14+
[flake8]
15+
exclude = .env, .tox, .git, __pycache__, .cache, build, dist, *.pyc, *.egg-info, .eggs
16+
application-import-names = flake8

0 commit comments

Comments
 (0)