diff options
author | w0rp <devw0rp@gmail.com> | 2017-05-12 20:38:52 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2017-05-12 20:38:52 +0100 |
commit | 2bafdb7e5a5cb96cb8263ed1b7bb79be021e4350 (patch) | |
tree | 022bac7040c99d8d6096ee7086d98ac442df21d1 /Makefile | |
parent | 07b2542c0d6505f2a843e700d246367a522ecf64 (diff) | |
download | ale-2bafdb7e5a5cb96cb8263ed1b7bb79be021e4350.zip |
Run all tests in NeoVim, improve the test script, and make all tests pass for NeoVim
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/Makefile b/Makefile deleted file mode 100644 index 86ac17d9..00000000 --- a/Makefile +++ /dev/null @@ -1,53 +0,0 @@ -SHELL := /usr/bin/env bash -IMAGE ?= w0rp/ale -CURRENT_IMAGE_ID = 30a9967dbdb1 -DOCKER_FLAGS = --rm -v $(PWD):/testplugin -v $(PWD)/test:/home "$(IMAGE)" -tests = test/*.vader test/*/*.vader test/*/*/*.vader test/*/*/*/*.vader - -test-setup: - docker images -q w0rp/ale | grep ^$(CURRENT_IMAGE_ID) > /dev/null || \ - docker pull $(IMAGE) - -vader: test-setup - @:; \ - vims=$$(docker run --rm $(IMAGE) ls /vim-build/bin | grep -E '^n?vim'); \ - if [ -z "$$vims" ]; then echo "No Vims found!"; exit 1; fi; \ - for vim in $$vims; do \ - docker run -a stderr $(DOCKER_FLAGS) $$vim '+Vader! $(tests)'; \ - done - -test: test-setup - @:; \ - vims=$$(docker run --rm $(IMAGE) ls /vim-build/bin | grep -E '^n?vim'); \ - if [ -z "$$vims" ]; then echo "No Vims found!"; exit 1; fi; \ - EXIT=0; \ - for vim in $$vims; do \ - echo; \ - echo '========================================'; \ - echo "Running tests for $$vim"; \ - echo '========================================'; \ - echo; \ - docker run -a stderr $(DOCKER_FLAGS) $$vim '+Vader! $(tests)' || EXIT=$$?; \ - done; \ - echo; \ - echo '========================================'; \ - echo 'Running Vint to lint our code'; \ - echo '========================================'; \ - echo 'Vint warnings/errors follow:'; \ - echo; \ - set -o pipefail; \ - docker run -a stdout $(DOCKER_FLAGS) vint -s /testplugin | sed s:^/testplugin/:: || EXIT=$$?; \ - set +o pipefail; \ - echo; \ - echo '========================================'; \ - echo 'Running custom checks'; \ - echo '========================================'; \ - echo 'Custom warnings/errors follow:'; \ - echo; \ - set -o pipefail; \ - docker run -v $(PWD):/testplugin "$(IMAGE)" /testplugin/custom-checks /testplugin | sed s:^/testplugin/:: || EXIT=$$?; \ - set +o pipefail; \ - echo; \ - exit $$EXIT; - -.DEFAULT_GOAL := test |