From 0a9b6e2abff2c401c61d76c2327d39f6c4413446 Mon Sep 17 00:00:00 2001
From: Daniel Hahler <git@thequod.de>
Date: Wed, 25 Jul 2018 00:59:20 +0200
Subject: [PATCH] tests: use Vim v8.1.0129 to work around Vim bug

This works around a segfault with profiling.

Ref: https://github.com/vim/vim/commit/ad6480961080f80a455b2394f27b02935a2ded52#commitcomment-29790223
---
 .circleci/config.yml | 2 +-
 Dockerfile           | 4 ++--
 Makefile             | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

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:
-- 
2.39.5