Skip to content

Commit

Permalink
Fix tox serve command (#1463)
Browse files Browse the repository at this point in the history
* Fix tox serve command
* Fix tests fail on travis
  • Loading branch information
kryskool committed Apr 12, 2018
1 parent c095f11 commit 3b4cf12
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -11,6 +11,7 @@ DEV
.ropeproject .ropeproject
modoboa.iml modoboa.iml
.tox .tox
.eggs/
modoboa_test modoboa_test
.coverage .coverage
build/ build/
Expand Down
2 changes: 2 additions & 0 deletions .travis.yml
Expand Up @@ -36,6 +36,8 @@ install:
- pip install -r requirements.txt - pip install -r requirements.txt
- pip install -r ldap-requirements.txt - pip install -r ldap-requirements.txt
- pip install -r test-requirements.txt - pip install -r test-requirements.txt
- if [ $DB = POSTGRESQL ]; then pip install -r postgresql-requirements.txt ; fi
- if [ $DB = MYSQL ]; then pip install -r mysql-requirements.txt ; fi
- python setup.py develop - python setup.py develop


before_script: before_script:
Expand Down
2 changes: 0 additions & 2 deletions test-requirements.txt
Expand Up @@ -3,5 +3,3 @@ mock==2.0.0; python_version < '3.3'
httmock==1.2.5 httmock==1.2.5
testfixtures==4.7.0 testfixtures==4.7.0
tox tox
psycopg2-binary>=2.7.4
mysqlclient>=1.3.3
3 changes: 3 additions & 0 deletions tox.ini
Expand Up @@ -9,8 +9,11 @@ commands =


coverage report --show-missing coverage report --show-missing
deps = deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt -r{toxinidir}/test-requirements.txt
coverage coverage
postgres: -r{toxinidir}/postgresql-requirements.txt
mysql: -r{toxinidir}/mysql-requirements.txt
setenv = setenv =
COVERAGE_FILE={envdir}/.coverage COVERAGE_FILE={envdir}/.coverage
DB=SQLITE DB=SQLITE
Expand Down

0 comments on commit 3b4cf12

Please sign in to comment.