Skip to content

Commit

Permalink
Cache the gadgets to make CI maybe work
Browse files Browse the repository at this point in the history
And stop installing experimental gadgets for now. The downloads get
rejected and it makes the vimspector bundle bigger than needed.
  • Loading branch information
puremourning committed Oct 26, 2019
1 parent 12df3c5 commit 3c8edd4
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
17 changes: 14 additions & 3 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion install_gadget.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
'language': 'tcl',
'repo': {
'url': 'https://github.com/puremourning/TclProDebug',
'ref': 'master',
'ref': 'f5c56b7067661ce84e205765060224076569ae0e', # master 26/10/2019
},
'do': lambda name, root: InstallTclProDebug( name, root )
},
Expand Down

0 comments on commit 3c8edd4

Please sign in to comment.