create dedicated SNAP env var

only for update skipping for now, instead of piggybacking off $CI
This commit is contained in:
Casper da Costa-Luis
2019-11-29 18:39:05 +00:00
parent ba12e1c457
commit f616265c95
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -48,7 +48,7 @@ class Updater(object): # pragma: no cover
logger.debug(msg.format(self.lock.lockfile, action))
def check(self):
if os.getenv("CI") or env2bool("DVC_TEST"):
if os.getenv("CI") or env2bool("DVC_TEST") or env2bool("SNAP"):
return
self._with_lock(self._check, "checking")
+1 -1
View File
@@ -31,6 +31,6 @@ apps:
completer: completion.sh
environment:
GIT_PYTHON_GIT_EXECUTABLE: dvc.git
CI: snap # suppress update checks
SNAP: 1 # suppress update checks
git:
command: /usr/bin/git