Merge pull request #11 from chatcannon/tox

Add testing with tox
This commit is contained in:
Chris Kerr
2017-04-22 13:31:04 +02:00
committed by GitHub
3 changed files with 15 additions and 16 deletions

View File

@@ -1,19 +1,13 @@
sudo: false
language: python language: python
cache:
directories:
- .tox
- tests/testdata
python: python:
# - "2.6" # 2.6 does not have collections.OrderedDict
- "2.7" - "2.7"
- "3.2"
- "3.3"
- "3.4"
- "3.5" - "3.5"
- "3.5-dev" # 3.5 development branch install:
- "3.6" - pip install tox-travis
- "3.6-dev" # 3.6 development branch - sh get_testdata.sh
- "3.7-dev" # 3.7 development branch script: tox
- "nightly" # currently points to 3.7-dev
# command to install dependencies
install: "pip install -r requirements.txt"
install: "pip install nose"
install: "sh get_testdata.sh"
# command to run tests
script: nosetests

View File

@@ -6,7 +6,7 @@
mkdir -p tests/testdata mkdir -p tests/testdata
cd tests/testdata cd tests/testdata
/usr/bin/wget -i - <<END_FILELIST /usr/bin/wget --continue -i - <<END_FILELIST
http://files.figshare.com/1778905/arbin1.res http://files.figshare.com/1778905/arbin1.res
http://files.figshare.com/1778937/bio_logic2.mpt http://files.figshare.com/1778937/bio_logic2.mpt
http://files.figshare.com/1778938/bio_logic5.mpt http://files.figshare.com/1778938/bio_logic5.mpt

5
tox.ini Normal file
View File

@@ -0,0 +1,5 @@
[tox]
envlist = py27,py35
[testenv]
deps=nose
commands=nosetests