We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71e98cd commit 102187bCopy full SHA for 102187b
tests/remotes/__init__.py
@@ -37,7 +37,21 @@
37
38
39
@pytest.fixture(scope="session")
40
-def docker_compose():
+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):
55
try:
56
subprocess.check_output("docker-compose version", shell=True)
57
except (subprocess.CalledProcessError, OSError):
0 commit comments