Skip to content

Commit 102187b

Browse files
authored
1 parent 71e98cd commit 102187b

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

tests/remotes/__init__.py

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,21 @@
3737

3838

3939
@pytest.fixture(scope="session")
40-
def docker_compose():
40+
def docker():
41+
import os
42+
43+
# See https://travis-ci.community/t/docker-linux-containers-on-windows/301
44+
if os.environ.get("TRAVIS") and os.name == "nt":
45+
pytest.skip("disabled for Windows on Travis")
46+
47+
try:
48+
subprocess.check_output("docker ps", shell=True)
49+
except (subprocess.CalledProcessError, OSError):
50+
pytest.skip("no docker installed")
51+
52+
53+
@pytest.fixture(scope="session")
54+
def docker_compose(docker):
4155
try:
4256
subprocess.check_output("docker-compose version", shell=True)
4357
except (subprocess.CalledProcessError, OSError):

0 commit comments

Comments
 (0)