Make debugging actually work on linux by installing gdb. Also, add a manual image for testing the tests

This commit is contained in:
Ben Jackson 2019-06-02 16:54:11 +01:00
commit 3a70b3dd2c
6 changed files with 56 additions and 7 deletions

View file

@ -0,0 +1,5 @@
runtime defaults.vim
let g:vimspector_enable_mappings='HUMAN'
set signcolumn=yes
set rtp+=$HOME/vimspector
filetype plugin indent on

View file

@ -0,0 +1,20 @@
FROM puremourning/vimspector:test
RUN apt-get update && \
apt-get -y dist-upgrade && \
apt-get -y install sudo
## cleanup of files from setup
RUN rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN useradd -ms /bin/bash -d /home/dev -G sudo dev && \
echo "dev:dev" | chpasswd && \
echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers.d/sudo
USER dev
WORKDIR /home/dev
ENV HOME /home/dev
ENV PYTHON_CONFIGURE_OPTS --enable-shared
ADD --chown=dev:dev .vim/ /home/dev/.vim/

5
tests/manual/rebuild Executable file
View file

@ -0,0 +1,5 @@
#!/usr/bin/env bash
set -e
docker build --no-cache -t puremourning/vimspector:manual image/

13
tests/manual/run Executable file
View file

@ -0,0 +1,13 @@
#!/usr/bin/env bash
CONTAINER=puremourning/vimspector:manual
if [ "$@" ];then
CMD="$@"
fi
docker run --cap-add=SYS_PTRACE \
--security-opt seccomp=unconfined \
--mount src="$(pwd)/../..",target=/home/dev/vimspector,type=bind \
-it ${CONTAINER} \
$CMD