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.
This commit is contained in:
Ben Jackson 2019-10-26 14:17:13 +01:00
commit 3c8edd4f0f
2 changed files with 15 additions and 4 deletions

View file

@ -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

View file

@ -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 )
},