Skip to content

Commit

Permalink
Update tox
Browse files Browse the repository at this point in the history
  • Loading branch information
cthoyt committed Feb 5, 2018
1 parent 77638af commit 3069cd7
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
Empty file added tests/__init__.py
Empty file.
12 changes: 12 additions & 0 deletions tests/test_parse.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# -*- coding: utf-8 -*-

import unittest


class TestParse(unittest.TestCase):
def test_dummy(self):
self.assertTrue(True)


if __name__ == '__main__':
unittest.main()
11 changes: 9 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@
envlist = py, rst-lint, docs

[testenv]
commands = python3 -m bio2bel_chebi deploy
passenv = ARTY_USERNAME ARTY_PASSWORD
commands = coverage run -p -m pytest --durations=20 tests {posargs}
whitelist_externals =
/bin/cat
/bin/cp
/bin/mkdir

[testenv:rst-lint]
commands = rst-lint README.rst
Expand All @@ -24,3 +27,7 @@ commands =
sphinx-build -W -b coverage -d {envtmpdir}/build/doctrees {envtmpdir}/source {envtmpdir}/build/coverage
cat {envtmpdir}/build/coverage/c.txt
cat {envtmpdir}/build/coverage/python.txt

[testenv:deploy]
commands = python3 -m bio2bel_chebi deploy
passenv = ARTY_USERNAME ARTY_PASSWORD

0 comments on commit 3069cd7

Please sign in to comment.