From 5332f8a2bc9d4441e34c16b86bcdd946c5f4f5bb Mon Sep 17 00:00:00 2001 From: Ruslan Kuprieiev Date: Mon, 15 Jan 2018 21:20:40 +0200 Subject: [PATCH 1/2] cloud: gcp: implement remove() Signed-off-by: Ruslan Kuprieiev --- dvc/cloud/gcp.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dvc/cloud/gcp.py b/dvc/cloud/gcp.py index 73c16cbf7..df9c386e8 100644 --- a/dvc/cloud/gcp.py +++ b/dvc/cloud/gcp.py @@ -124,4 +124,7 @@ class DataCloudGCP(DataCloudBase): return (local_exists, remote_exists, diff) def remove(self, item): - raise Exception('NOT IMPLEMENTED YET') + bucket = self._get_bucket_gc(self.storage_bucket) + blob_name = self.cache_file_key(path) + blob = bucket.blob(blob_name) + blob.delete() From c3ec1d1cd40bf11714f27fc53f9ad71953ff6299 Mon Sep 17 00:00:00 2001 From: Ruslan Kuprieiev Date: Tue, 16 Jan 2018 01:00:22 +0200 Subject: [PATCH 2/2] travis: build mac os if building tag Signed-off-by: Ruslan Kuprieiev --- .travis.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 420117618..7e330a754 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,19 +16,19 @@ cache: pip # version, that causes fpm to crash. matrix: include: - - if: type = cron + - if: type = cron OR tag is present os: osx osx_image: xcode7.3 language: ruby rvm: 2.4.0 env: PYTHON_VER=2.7.10 - - if: type = cron + - if: type = cron OR tag is present os: osx osx_image: xcode7.3 language: ruby rvm: 2.4.0 env: PYTHON_VER=3.4.3 - - if: type = cron + - if: type = cron OR tag is present os: osx osx_image: xcode7.3 language: ruby