From: Thomas Fillon Date: Sun, 20 Apr 2014 09:06:04 +0000 (+0200) Subject: Try to fix tests support in travis X-Git-Tag: 0.5.5~1^2~38^2~34 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=b6e319a81dc6396d73985a108f0a49a744096b8a;p=timeside.git Try to fix tests support in travis --- diff --git a/.travis.yml b/.travis.yml index b7be10f..d3dbafb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -21,6 +21,9 @@ install: - python setup.py install # command to run tests +before_script: +- python tests/get_samples.py + script: # - py.test tests --ignore tests/sandbox - python setup.py test diff --git a/setup.py b/setup.py index 68d727f..11140d6 100755 --- a/setup.py +++ b/setup.py @@ -14,13 +14,6 @@ class PyTest(TestCommand): def run_tests(self): #import here, cause outside the eggs aren't loaded import pytest - - import os - os.chdir('tests') - from tools import check_samples - check_samples() - os.chdir('..') - errno = pytest.main(self.test_args) sys.exit(errno) diff --git a/tests/get_samples.py b/tests/get_samples.py new file mode 100644 index 0000000..a4d37a8 --- /dev/null +++ b/tests/get_samples.py @@ -0,0 +1,6 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- + +from tools import check_samples + +check_samples()