From: Daniel Hahler Date: Tue, 24 Jul 2018 23:23:28 +0000 (+0200) Subject: Merge pull request #110 from blueyed/v8.1.0129 X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/32f6a72c041ca49e7131c6a84c38e94960e8ef7b?hp=64306e443a57fbe898c7e5fe5e8fd8391f95fcb4 Merge pull request #110 from blueyed/v8.1.0129 tests: use Vim v8.1.0129 to work around Vim bug --- diff --git a/.circleci/config.yml b/.circleci/config.yml index b9df782..8d54439 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -3,7 +3,7 @@ version: 2 common: &common working_directory: ~/repo docker: - - image: blueyed/vim-python-pep8-indent-vims-for-test:2@sha256:a7be5f4d07ed361ce3ca78cedd413d67d583f96ab0a59feb512af89052c50172 + - image: blueyed/vim-python-pep8-indent-vims-for-test:3@sha256:e7e3c4f4b021954a40f2f1d88dc470f119dc65603c63724d1c58cbe437fdc2d4 jobs: test: diff --git a/Dockerfile b/Dockerfile index 85d8e21..14e39ea 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,10 +2,10 @@ FROM testbed/vim:latest RUN apk --no-cache add gtk+2.0-dev libx11-dev libxt-dev mcookie xauth xvfb # NOTE: +profile needs huge features. -RUN install_vim -tag master --with-features=huge \ +RUN install_vim -tag v8.1.0129 -name vim --with-features=huge \ --disable-channel --disable-netbeans --disable-xim \ --enable-gui=gtk2 --with-x -build -RUN ln -s /vim-build/bin/vim-master /usr/bin/gvim +RUN ln -s /vim-build/bin/vim /usr/bin/gvim RUN gvim --version # Install covimerage and vint. diff --git a/Makefile b/Makefile index 49d9ade..2566d41 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ test: # Run tests in dockerized Vims. DOCKER_REPO:=blueyed/vim-python-pep8-indent-vims-for-test -DOCKER_TAG:=2 +DOCKER_TAG:=3 DOCKER_IMAGE:=$(DOCKER_REPO):$(DOCKER_TAG) docker_image: diff --git a/spec/indent/cython_spec.rb b/spec/indent/cython_spec.rb index 6a85790..933801d 100644 --- a/spec/indent/cython_spec.rb +++ b/spec/indent/cython_spec.rb @@ -4,9 +4,12 @@ describe "vim for cython" do before(:all) { vim.command "new" vim.command "set ft=cython" - # vim.command("set indentexpr?").should include "GetPythonPEPIndent(" + vim.command("set indentexpr?").should include "GetPythonPEPIndent(" } before(:each) { + # clear buffer + vim.normal 'gg"_dG' + # Insert two blank lines. # The first line is a corner case in this plugin that would shadow the # correct behaviour of other tests. Thus we explicitly jump to the first