diff --git a/dvc/__init__.py b/dvc/__init__.py index 2293c96e6..1228f2df3 100644 --- a/dvc/__init__.py +++ b/dvc/__init__.py @@ -57,6 +57,7 @@ if os.path.exists(os.path.join(HOMEPATH, "setup.py")): if ( os.getenv("APPVEYOR_REPO_TAG", "").lower() != "true" and os.getenv("TRAVIS_TAG", "") == "" + and os.getenv("DVC_TEST", "").lower() != "true" ): __version__ = _update_version_file() else: # pragma: no cover diff --git a/tests/test_install.py b/tests/test_install.py index 54cf8f80f..df0c45403 100644 --- a/tests/test_install.py +++ b/tests/test_install.py @@ -1,10 +1,15 @@ import os +import sys +import unittest from dvc.main import main from tests.basic_env import TestDvc +@unittest.skipIf( + sys.platform == "win32", "Git hooks aren't supported on Windows" +) class TestInstall(TestDvc): def test(self): ret = main(["install"])