mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
test: test AWS on appveyor
Signed-off-by: Ruslan Kuprieiev <[email protected]>
This commit is contained in:
@@ -5,6 +5,12 @@ branches:
|
||||
platform: x86
|
||||
|
||||
environment:
|
||||
my_variable:
|
||||
aws_access_key_id:
|
||||
secure: N3zfVSEvKhLSg/wvtrT1ZIVl9/egvW6xqIoRDrOcvvrkvJM0VejDHb3R3BWUUftY
|
||||
aws_secret_access_key:
|
||||
secure: /XGu3uYneji4fwIaFIEzDln9bx7vWZiLb6yie1temPyIRK+NQlvyfGXHcKZ5Vm4teaG68pNvQKoYulUSem4NvQ==
|
||||
|
||||
matrix:
|
||||
|
||||
- PYTHON: "C:\\Python27"
|
||||
|
||||
@@ -99,12 +99,15 @@ class TestDataCloudAWS(TestDataCloudBase):
|
||||
TEST_REPO_REGION = 'us-east-2'
|
||||
|
||||
def _should_test(self):
|
||||
if os.name == 'nt':
|
||||
dvc_test_aws = os.getenv("DVC_TEST_AWS")
|
||||
if dvc_test_aws == "true":
|
||||
return True
|
||||
elif dvc_test_aws == "false":
|
||||
return False
|
||||
|
||||
if os.getenv("TRAVIS_PULL_REQUEST") == "false" and \
|
||||
os.getenv("TRAVIS_SECURE_ENV_VARS") == "true":
|
||||
if os.getenv("AWS_ACCESS_KEY_ID") and os.getenv("AWS_SECRET_ACCESS_KEY"):
|
||||
return True
|
||||
|
||||
return False
|
||||
|
||||
def _setup_cloud(self):
|
||||
@@ -129,12 +132,10 @@ class TestDataCloudGCP(TestDataCloudBase):
|
||||
TEST_REPO_GCP_PROJECT='dvc-project'
|
||||
|
||||
def _should_test(self):
|
||||
if os.name == 'nt':
|
||||
return False
|
||||
if os.getenv("DVC_TEST_GCP") == "true":
|
||||
return True
|
||||
|
||||
if os.getenv("TRAVIS") == "true" or os.getenv("APPVEYOR") == "True" or os.getenv("DVC_TEST_GCP") != "true":
|
||||
return False
|
||||
return True
|
||||
return False
|
||||
|
||||
def _setup_cloud(self):
|
||||
if not self._should_test():
|
||||
|
||||
Reference in New Issue
Block a user