Skip to content

Commit

Permalink
travis and tox files added
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiaskoenig committed Oct 22, 2019
1 parent cd1f5a9 commit 6fb9896
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
language: python
matrix:
include:
- os: linux
sudo: required
python: 3.5

- os: linux
sudo: required
python: 3.6


install:
pip install -r requirements.txt

script:
pytest --cov=sbmlsim

after_success:
pip install codecov; codecov

cache:
directories:
- $HOME/.cache/pip
2 changes: 2 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
codecov:
branch: develop
17 changes: 17 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[tox]
envlist = pep8, py35, py36

[testenv]
deps=
-rrequirements.txt
# pytest
commands=
pytest sbmlsim

[testenv:pep8]
skip_install = True
deps =
pep8
commands =
# ignoring too long lines E501 in addition to defaults
pep8 --show-source sbmlsim --ignore=E121,E123,E126,E226,E24,E704,E501

0 comments on commit 6fb9896

Please sign in to comment.