Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Run tox on travis

Adam Bogdałf5fce0721d3a
diff --git a/.coveragerc b/.coveragerc
index 658f243ddb..038b979075 100644
--- a/.coveragerc
+++ b/.coveragerc
@@ -1,6 +1,8 @@
[run]
branch = 1
-omit = */test_*.py
+omit =
+ */migrations/*
+ */test_*.py
source = saleor
[report]
diff --git a/.travis.yml b/.travis.yml
index dc05305a05..751fd72efe 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,13 +1,12 @@
language: python
sudo: false
-python:
- - 2.7
- - 3.3
- - 3.4
install:
- - python setup.py install
- - pip install coverage
- - pip install codecov
-script: coverage run setup.py test
+ - pip install tox codecov
+script:
+ - tox
+env:
+ - TOXENV=py27
+ - TOXENV=py33
+ - TOXENV=py34
after_success:
- codecov
diff --git a/tox.ini b/tox.ini
index 3447e2eb79..71e33a776b 100644
--- a/tox.ini
+++ b/tox.ini
@@ -3,11 +3,12 @@ envlist = py27,py33,py34
[testenv]
deps=
- mock
- purl
+ mock==1.3.0
+ purl>=0.4.1
pytest
pytest-django
-commands=py.test
+ coverage
+commands=coverage run setup.py test
[pytest]
norecursedirs =