travis integration for tests

This commit is contained in:
poikjhn 2016-06-03 17:58:41 +02:00
parent 546c075729
commit 89e6467d74
3 changed files with 15 additions and 0 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
*.py[co]
*.sw[po]
.cache/

9
.travis.yml Normal file
View File

@ -0,0 +1,9 @@
language: python
python:
- "3.2"
- "3.3"
- "3.4"
- "3.5"
install: "pip install -r requirements.txt"
script:
- ./tests/run_tests.py

5
tests/run_tests.sh Executable file
View File

@ -0,0 +1,5 @@
#!/bin/bash
tests_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $tests_dir
python -m pytest test_*.py