From 89e6467d7439619eeb0406414328e5afd48c9be6 Mon Sep 17 00:00:00 2001 From: poikjhn Date: Fri, 3 Jun 2016 17:58:41 +0200 Subject: [PATCH] travis integration for tests --- .gitignore | 1 + .travis.yml | 9 +++++++++ tests/run_tests.sh | 5 +++++ 3 files changed, 15 insertions(+) create mode 100644 .travis.yml create mode 100755 tests/run_tests.sh diff --git a/.gitignore b/.gitignore index 27c8f86..614d328 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ *.py[co] *.sw[po] +.cache/ diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..a2c6dbf --- /dev/null +++ b/.travis.yml @@ -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 diff --git a/tests/run_tests.sh b/tests/run_tests.sh new file mode 100755 index 0000000..9245b0e --- /dev/null +++ b/tests/run_tests.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +tests_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" +cd $tests_dir +python -m pytest test_*.py