This repository has been archived by the owner on Mar 21, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
54 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,24 @@ | ||
language: python | ||
|
||
before_script: | ||
- sudo apt-get install -qq python-pyside | ||
- "export DISPLAY=:99.0" | ||
- "sh -e /etc/init.d/xvfb start" | ||
- ln -s /usr/lib/python$TRAVIS_PYTHON_VERSION/dist-packages/PySide /home/travis/virtualenv/python$TRAVIS_PYTHON_VERSION/lib/python$TRAVIS_PYTHON_VERSION/site-packages -v | ||
- sleep 3 | ||
|
||
env: | ||
- TOX_ENV=py27 | ||
- TOX_ENV=py27 TOX_EXTRA_ARGS="" | ||
- TOX_ENV=py27-withgui TOX_EXTRA_ARGS=--sitepackages | ||
|
||
python: | ||
- "2.7" | ||
|
||
install: | ||
- "pip install tox==1.7.1" | ||
- "pip install tox==1.7.1 coveralls" | ||
|
||
script: | ||
- "tox -e $TOX_ENV" | ||
- tox -e $TOX_ENV $TOX_EXTRA_ARGS | ||
|
||
after_success: | ||
- "coveralls" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
[pytest] | ||
norecursedirs = .tox | ||
requirements | ||
addopts = --cov-report html --cov=keepass_http --cov-report=term-missing tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,19 @@ | ||
[tox] | ||
envlist = py27 | ||
envlist = py27, | ||
py27-withgui | ||
|
||
[py27] | ||
basepython = python2.7 | ||
[base] | ||
whitelist_externals = make | ||
deps = -rrequirements/testing.txt | ||
commands = make run_tests | ||
|
||
[testenv:py27] | ||
basepython = python2.7 | ||
whitelist_externals = {[base]whitelist_externals} | ||
commands = python setup.py test | ||
|
||
[testenv:py27-withgui] | ||
basepython = python2.7 | ||
whitelist_externals = {[base]whitelist_externals} | ||
commands = python setup.py test | ||
deps = pytest-qt==1.0.2 | ||
|
||
|