From 3c8edd4f0f7825b1230395a33733784de65478e0 Mon Sep 17 00:00:00 2001 From: Ben Jackson Date: Sat, 26 Oct 2019 14:17:13 +0100 Subject: [PATCH] Cache the gadgets to make CI maybe work And stop installing experimental gadgets for now. The downloads get rejected and it makes the vimspector bundle bigger than needed. --- azure-pipelines.yml | 17 ++++++++++++++--- install_gadget.py | 2 +- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 6976b6c..053df1f 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -42,8 +42,13 @@ stages: go get -u github.com/go-delve/delve/cmd/dlv displayName: 'Install Delve for Go' - # TODO: Use cache to store the download directory - - bash: python3 install_gadget.py --all --force-all + - task: CacheBeta@0 + inputs: + key: v1 | gadgets | $(Agent.OS) | install_gadget.py + path: gadgets/linux/download + displayName: Cache gadgets + + - bash: python3 install_gadget.py --all displayName: 'Install gadgets - python3' - bash: vim --version @@ -78,7 +83,13 @@ stages: - bash: go get -u github.com/go-delve/delve/cmd/dlv displayName: 'Install Delve for Go' - - bash: python3 install_gadget.py --all --force-all + - task: CacheBeta@0 + inputs: + key: v1 | gadgets | $(Agent.OS) | install_gadget.py + path: gadgets/macos/download + displayName: Cache gadgets + + - bash: python3 install_gadget.py --all displayName: 'Install gadgets - python3' - bash: vim --version diff --git a/install_gadget.py b/install_gadget.py index eaaadbe..6da3b35 100755 --- a/install_gadget.py +++ b/install_gadget.py @@ -111,7 +111,7 @@ GADGETS = { 'language': 'tcl', 'repo': { 'url': 'https://github.com/puremourning/TclProDebug', - 'ref': 'master', + 'ref': 'f5c56b7067661ce84e205765060224076569ae0e', # master 26/10/2019 }, 'do': lambda name, root: InstallTclProDebug( name, root ) },