From 47a6d4f1b0ffe591ecf0391230469f0a0759e40c Mon Sep 17 00:00:00 2001 From: varac Date: Thu, 16 Feb 2017 17:14:04 +0100 Subject: Only remove _version.py if it exists --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 628d9b9..0ca3273 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -10,7 +10,7 @@ stages: # Remove hardcoded pep440 version file so # `python setup.py version` reports the correct one # based on `git describe` - - rm src/leap/mx/_version.py + - '[ -f src/leap/mx/_version.py ] && rm src/leap/mx/_version.py' - build-build-package # sleep 1h to allow debugging of running container #- sleep 3600 -- cgit v1.2.3