From 8d95c918dd13e6b5eb4d7498db98aab6a5fe64a8 Mon Sep 17 00:00:00 2001 From: mitermayer Date: Fri, 30 Aug 2019 03:49:53 +0000 Subject: enabling-tests-on-ci - Enabling tests as part of the CI run - Ensuring we can run vim-driver tests on the CI --- .travis.yml | 1 + Dockerfile | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/.travis.yml b/.travis.yml index 4ccc9b1..fa4a218 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,3 +9,4 @@ before_install: script: - docker run --rm -v $PWD:/testplugin -v $PWD/tests:/home "mitermayer/vim-test-bed" vint testplugin + - docker run --rm --entrypoint=/bin/bash -v $PWD:/testplugin -v $PWD/tests:/home "mitermayer/vim-test-bed" -s npm install && npm test diff --git a/Dockerfile b/Dockerfile index da43972..0dcb58d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,8 @@ FROM testbed/vim:latest +# set vim8 as default vim for the container image +ENV DEFAULT_VIM=vim8 + # install pip ENV PACKAGES="\ bash \ @@ -17,5 +20,8 @@ RUN install_vim -tag v7.4.052 -name vim7 -build \ -tag v8.1.0519 -name vim8 -build \ -tag neovim:v0.3.5 -name neovim -build +# alias vim to allow contextual load +RUN echo 'alias vim="/sbin/run_vim $DEFAULT_VIM"' >> ~/.bashrc + # install vint RUN pip install typing>=3.6.2 pathlib==1.0.1 enum34>=1.0.4 vim-vint==0.3.19 -- cgit v1.3