Print env
This commit is contained in:
parent
eefb0c5c6b
commit
df8c0179d1
3 changed files with 8 additions and 27 deletions
|
|
@ -37,34 +37,21 @@ stages:
|
||||||
image: 'puremourning/vimspector:test'
|
image: 'puremourning/vimspector:test'
|
||||||
options: --cap-add=SYS_PTRACE --security-opt seccomp=unconfined
|
options: --cap-add=SYS_PTRACE --security-opt seccomp=unconfined
|
||||||
steps:
|
steps:
|
||||||
- task: bash@3
|
- bash: |
|
||||||
inputs:
|
eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv)
|
||||||
targetType: inline
|
go get -u github.com/go-delve/delve/cmd/dlv
|
||||||
script: go get -u github.com/go-delve/delve/cmd/dlv
|
|
||||||
noProfile: false
|
|
||||||
noRc: false
|
|
||||||
displayName: 'Install Delve for Go'
|
displayName: 'Install Delve for Go'
|
||||||
|
|
||||||
- task: bash@3
|
- bash: python3 install_gadget.py --all
|
||||||
inputs:
|
|
||||||
targetType: inline
|
|
||||||
script: python3 install_gadget.py --all
|
|
||||||
noProfile: false
|
|
||||||
noRc: false
|
|
||||||
displayName: 'Install gadgets'
|
displayName: 'Install gadgets'
|
||||||
|
|
||||||
- bash: vim --version
|
- bash: vim --version
|
||||||
displayName: 'Print vim version information'
|
displayName: 'Print vim version information'
|
||||||
|
|
||||||
- task: bash@3
|
- bash: ./run_tests
|
||||||
inputs:
|
displayName: 'Run the tests'
|
||||||
targetType: inline
|
|
||||||
script: ./run_tests
|
|
||||||
noProfile: false
|
|
||||||
noRc: false
|
|
||||||
env:
|
env:
|
||||||
VIMSPECTOR_MIMODE: gdb
|
VIMSPECTOR_MIMODE: gdb
|
||||||
displayName: 'Run the tests'
|
|
||||||
|
|
||||||
- bash: ./make_package linux $(Build.SourceVersion)
|
- bash: ./make_package linux $(Build.SourceVersion)
|
||||||
displayName: 'Package'
|
displayName: 'Package'
|
||||||
|
|
|
||||||
|
|
@ -47,7 +47,7 @@ RUN mkdir -p /home/linuxbrew/.linuxbrew &&\
|
||||||
git clone https://github.com/Homebrew/brew /home/linuxbrew/.linuxbrew/Homebrew && \
|
git clone https://github.com/Homebrew/brew /home/linuxbrew/.linuxbrew/Homebrew && \
|
||||||
ln -s /home/linuxbrew/.linuxbrew/Homebrew/bin/brew /home/linuxbrew/.linuxbrew/bin && \
|
ln -s /home/linuxbrew/.linuxbrew/Homebrew/bin/brew /home/linuxbrew/.linuxbrew/bin && \
|
||||||
echo "eval \$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" \
|
echo "eval \$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" \
|
||||||
> /etc/bash.bashrc
|
> /etc/skel/.bashrc
|
||||||
|
|
||||||
RUN /home/linuxbrew/.linuxbrew/bin/brew install golang
|
RUN /home/linuxbrew/.linuxbrew/bin/brew install golang
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,14 +2,8 @@
|
||||||
|
|
||||||
CONTAINER=puremourning/vimspector:manual
|
CONTAINER=puremourning/vimspector:manual
|
||||||
|
|
||||||
if [ "$@" ];then
|
|
||||||
CMD="$@"
|
|
||||||
else
|
|
||||||
CMD="bash -l"
|
|
||||||
fi
|
|
||||||
|
|
||||||
docker run --cap-add=SYS_PTRACE \
|
docker run --cap-add=SYS_PTRACE \
|
||||||
--security-opt seccomp=unconfined \
|
--security-opt seccomp=unconfined \
|
||||||
--mount src="$(pwd)/../..",target=/home/dev/vimspector,type=bind \
|
--mount src="$(pwd)/../..",target=/home/dev/vimspector,type=bind \
|
||||||
-it ${CONTAINER} \
|
-it ${CONTAINER} \
|
||||||
$CMD
|
"$@"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue