-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use Docker for easier test running (#86)
Switches to CircleCI instead of Travis, which handles running tests in Docker much better, especially since Travis is really slow (~30min vs 2.5min on CircleCI). The Docker image is based on https://github.com/tweekmonster/vim-testbed, and targets are added to the Makefile to build/push it.
- Loading branch information
Showing
7 changed files
with
88 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
version: 2 | ||
|
||
jobs: | ||
test: | ||
docker: | ||
- image: blueyed/vim-python-pep8-indent-vims-for-test:1@sha256:8c77867e1fdf673a6df0ecf6628f8e4d80579a0a097ec196109ca0bc145d86c0 | ||
steps: | ||
- checkout | ||
- run: | ||
name: Run tests | ||
command: | | ||
Xvfb :99 & | ||
DISPLAY=:99 VIMRUNNER_REUSE_SERVER=1 rspec spec | ||
checkqa: | ||
docker: | ||
- image: circleci/python:3.7 | ||
steps: | ||
- checkout | ||
- run: | ||
name: Lint | ||
command: | | ||
pip install --user vim-vint | ||
~/.local/bin/vint **/*.vim | ||
workflows: | ||
version: 2 | ||
test: | ||
jobs: | ||
- test | ||
- checkqa |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
* | ||
!Gemfile | ||
!indent | ||
!spec |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
FROM testbed/vim:latest | ||
|
||
RUN apk --no-cache add gtk+2.0-dev libx11-dev libxt-dev mcookie xauth xvfb | ||
RUN install_vim -tag master --with-features=normal \ | ||
--disable-channel --disable-netbeans --disable-xim \ | ||
--enable-gui=gtk2 --with-x -build | ||
RUN ln -s /vim-build/bin/vim-master /usr/bin/gvim | ||
RUN gvim --version | ||
|
||
WORKDIR /vim-python-pep8-indent | ||
|
||
ADD Gemfile . | ||
RUN apk --no-cache add coreutils ruby-bundler | ||
RUN bundle install | ||
|
||
ADD indent ./indent | ||
ADD spec ./spec | ||
|
||
ENTRYPOINT ["rspec", "spec"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
version: '2' | ||
services: | ||
rspec: | ||
build: . | ||
volumes: | ||
- .:/vim-python-pep8-indent |