diff options
| author | mitermayer <mitermayer.reis@gmail.com> | 2019-08-31 02:39:39 +0000 |
|---|---|---|
| committer | mitermayer <mitermayer.reis@gmail.com> | 2019-08-31 02:39:39 +0000 |
| commit | 0188e98b1f8f71dcd162f0b3650c416707d38cd3 (patch) | |
| tree | 5547bf08e2df53ea32214681d5dd99778d6ead19 | |
| parent | da11e78133acc2ec904b5f9cbab0f85ac5401a95 (diff) | |
| download | vim-prettier-0188e98b1f8f71dcd162f0b3650c416707d38cd3.tar.xz | |
enabling-tests-to-auto-run-on-ci - Updating docker container
- Updating Dockerfile to ensure we have a compatible vim version to
vim-driver
| -rw-r--r-- | Dockerfile | 43 | ||||
| -rw-r--r-- | package.json | 3 | ||||
| -rwxr-xr-x | run-test | 16 |
3 files changed, 48 insertions, 14 deletions
@@ -1,5 +1,34 @@ +FROM alpine:3.8 as builder + +WORKDIR /tmp + +RUN apk add --no-cache \ + build-base \ + ctags \ + git \ + libx11-dev \ + libxpm-dev \ + libxt-dev \ + libxtst-dev \ + make \ + ncurses-dev \ + python3 \ + python3-dev \ + perl-dev \ + ruby-dev + +RUN git clone https://github.com/vim/vim && cd vim \ + && ./configure \ + --with-features=huge \ + --with-x \ + --with-compiledby=mitermayer.reis@gmail.com \ + && make install + FROM testbed/vim:latest +COPY --from=builder /usr/local/bin /usr/local/bin +COPY --from=builder /usr/local/share/vim /usr/local/share/vim + # install pip ENV PACKAGES="\ bash \ @@ -8,16 +37,20 @@ ENV PACKAGES="\ py-pip \ nodejs \ npm \ + libxt \ + libx11 \ " + RUN apk --update add $PACKAGES && \ rm -rf /var/cache/apk/* /tmp/* /var/tmp/* -# install supported vim8 and neovim -RUN install_vim -tag v7.4.052 -name vim7 -build \ - -tag v8.1.0519 -name vim -build \ - -tag neovim:v0.3.5 -name neovim -build +# install supported vim8 and neovim +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 + # upgrade node and yarn RUN npm install -g npm yarn # install vint -RUN pip install typing>=3.6.2 pathlib==1.0.1 enum34>=1.0.4 vim-vint==0.3.19 +RUN pip install typing>=4.6.2 pathlib==1.0.1 enum34>=1.0.4 vim-vint==0.3.19 diff --git a/package.json b/package.json index 494cfd7..3f1441c 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,8 @@ "url": "git://github.com/prettier/vim-prettier.git" }, "scripts": { - "test": "LOG_LEVEL=error jest" + "test": "vim --version && LOG_LEVEL=error jest", + "lint": "vint --version && vint ." }, "dependencies": { "@prettier/plugin-lua": "0.0.1", @@ -6,12 +6,12 @@ docker run \ -v $PWD:/testplugin \ -v $PWD/tests:/home \ "mitermayer/vim-test-bed" \ - vint testplugin + yarn --cwd testplugin lint -echo "Running tests..." -docker run \ - --rm \ - -v $PWD:/testplugin \ - -v $PWD/tests:/home \ - "mitermayer/vim-test-bed" \ - yarn --cwd testplugin test +#echo "Running tests..." +#docker run \ +# --rm \ +# -v $PWD:/testplugin \ +# -v $PWD/tests:/home \ +# "mitermayer/vim-test-bed" \ +# yarn --cwd testplugin test |
