Skip to content

Commit

Permalink
Skip tests on travis
Browse files Browse the repository at this point in the history
  • Loading branch information
mfeurer committed Nov 26, 2015
1 parent 99af1df commit 2dcfad6
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 1 deletion.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ language: python
python:
- "2.7"
- "3.4"
- "3.5"


cache:
Expand Down
6 changes: 6 additions & 0 deletions test/automl/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ class Base(unittest.TestCase):
def setUp(self):
self.test_dir = os.path.dirname(__file__)

try:
travis = os.environ['TRAVIS']
self.travis = True
except Exception:
self.travis = False

def _setUp(self, output):
if os.path.exists(output):
for i in range(10):
Expand Down
5 changes: 5 additions & 0 deletions test/automl/test_estimators.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from __future__ import print_function
import os
import sys
import unittest

import numpy as np
import ParamSklearn.util as putil
Expand All @@ -25,6 +26,10 @@ class EstimatorTest(Base):
_multiprocess_can_split_ = True

def test_fit(self):
if self.travis:
self.skipTest('This test does currently not run on travis-ci. '
'Make sure it runs locally on your machine!')

output = os.path.join(self.test_dir, '..', '.tmp_estimator_fit')
self._setUp(output)

Expand Down
4 changes: 4 additions & 0 deletions test/automl/test_start_automl.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ class AutoMLTest(Base):
_multiprocess_can_split_ = True

def test_fit(self):
if self.travis:
self.skipTest('This test does currently not run on travis-ci. '
'Make sure it runs locally on your machine!')

output = os.path.join(self.test_dir, '..', '.tmp_test_fit')
self._setUp(output)

Expand Down

0 comments on commit 2dcfad6

Please sign in to comment.