Set test case files for travis
<p>I have this <a href="https://github.com/b5y/log2html" rel="nofollow">project</a> on GitHub which has test case files. I run tests locally via pytest and all passed. But travis does not pass these tests and outputs errors:</p>

<p><code>OSError: [Errno 2] No such file or directory: '/home/travis/build/b5y/log2html/tests/test_samples'</code></p>

<p>I set path to test files this way:</p>

<pre><code>DIR_TEST_FILES = os.getcwd() + os.sep + 'tests' + os.sep + 'test_samples'
</code></pre>

<p>I have tried with <code>DIR_TEST_FILES = './test_samples'</code> and with <code>os</code> module through <code>path</code> method. Nothing works for travis.</p>

<p>Any help will be highly appreciated.</p>

<p>Somehow your tests are being run from the log directory inside your build directory. Make sure that travis-ci is in the same directory when it runs tests as you are when you run tests. It may be helpful to include a <code>pwd</code> or <code>ls</code> in the <code>script:</code> section of your <code>.travis.yml</code> file initially so that you can determine the relative paths to your tests. </p>

python travis-ci py.test