]> git.madduck.net Git - etc/vim.git/blob - spec/make-coverage

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:

Fix multiline handling with blank lines (#111)
[etc/vim.git] / spec / make-coverage
1 #!/bin/sh
2
3 set -ex
4
5 rm -f .coverage_covimerage
6 export PYTHON_PEP8_INDENT_TEST_PROFILE_BASE=/tmp/vim-python-pep8-profile
7
8 Xvfb :99 2>/dev/null >&2 &
9 export DISPLAY=:99
10
11 export VIMRUNNER_REUSE_SERVER=1
12
13 ret=0
14 for file in ./spec/indent/*_spec.rb; do
15   # shellcheck disable=SC2086
16   bundle exec rspec "$file" $RSPEC_OPTIONS || ret=1
17
18   for p in "${PYTHON_PEP8_INDENT_TEST_PROFILE_BASE}".*; do
19     cat "$p"
20     covimerage write_coverage --append "$p"
21     rm "$p"
22     covimerage report -m
23   done
24 done
25 exit $ret