From: Thomas Fillon Date: Sun, 20 Apr 2014 09:06:04 +0000 (+0200) Subject: Try to fix tests support in travis X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=faa71573bb535028114a6322d5559e623dc96d7b;p=timeside-diadems.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)