From 82b865808aa895e9db763657185ae46c49dd6e6a Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Wed, 16 Dec 2020 11:39:30 -0800 Subject: [PATCH] remove per-branch build caching for CI builds old-commit-hash: d62e0aa0927c0a7c8192934e8138e0beb3a40b31 --- SConstruct | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/SConstruct b/SConstruct index 374e3bc745..ddca0fe59e 100644 --- a/SConstruct +++ b/SConstruct @@ -193,20 +193,12 @@ if GetOption('test'): if os.environ.get('SCONS_CACHE'): cache_dir = '/tmp/scons_cache' - - if os.getenv('CI'): - branch = os.getenv('GIT_BRANCH') - - if QCOM_REPLAY: - cache_dir = '/tmp/scons_cache_qcom_replay' - elif branch is not None and branch != 'master': - cache_dir_branch = '/tmp/scons_cache_' + branch - if not os.path.isdir(cache_dir_branch) and os.path.isdir(cache_dir): - shutil.copytree(cache_dir, cache_dir_branch) - cache_dir = cache_dir_branch - elif TICI: + if TICI: cache_dir = '/data/scons_cache' + if QCOM_REPLAY: + cache_dir = '/tmp/scons_cache_qcom_replay' + CacheDir(cache_dir) node_interval = 5