]> git.madduck.net Git - etc/vim.git/blob - Makefile

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

874c7ede58b101676d6dc951ec7759181ec30005
[etc/vim.git] / Makefile
1 test:
2         VIMRUNNER_REUSE_SERVER=1 xvfb-run bundle exec rspec
3
4 test_slow:
5         VIMRUNNER_REUSE_SERVER=0 bundle exec rspec
6
7 test_visible:
8         VIMRUNNER_REUSE_SERVER=1 bundle exec rspec
9
10 # Run tests in dockerized Vims.
11 DOCKER_REPO:=blueyed/vim-python-pep8-indent-vims-for-test
12 DOCKER_TAG:=1
13 DOCKER_IMAGE:=$(DOCKER_REPO):$(DOCKER_TAG)
14
15 docker_image:
16         docker build -t $(DOCKER_REPO):$(DOCKER_TAG) .
17 docker_push:
18         docker push $(DOCKER_REPO):$(DOCKER_TAG)
19 docker_update_latest:
20         docker tag $(DOCKER_REPO):$(DOCKER_TAG) $(DOCKER_REPO):latest
21         docker push $(DOCKER_REPO):latest
22
23 test_docker: XVFB_ERRORFILE:=/dev/null
24 test_docker:
25         @set -x; export DISPLAY=$(if $(VIMRUNNER_TEST_DISPLAY),$(VIMRUNNER_TEST_DISPLAY),172.17.0.1:99; Xvfb -ac -listen tcp :99 >$(XVFB_ERRORFILE) 2>&1 & XVFB_PID=$$!); \
26           docker run --rm -ti -e DISPLAY -e VIMRUNNER_REUSE_SERVER=1 \
27           -v $(CURDIR):/vim-python-pep8-indent $(DOCKER_IMAGE) $(RSPEC_ARGS) \
28           $(if $(VIMRUNNER_TEST_DISPLAY),,; ret=$$?; kill $$XVFB_PID; exit $$ret)