This repository was archived by the owner on Mar 21, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 2
2
3
3
set -Ceu
4
4
5
+ # Work from project root
5
6
cd " $( dirname " $0 " ) "
6
7
8
+ # Use build for build and test tools
7
9
mkdir -p build
8
10
11
+ # Ensure vimlparser and vimlint are available
9
12
if ! [ -d build/vim-vimlparser ]; then
10
13
git clone --depth 1 https://github.com/ynkdir/vim-vimlparser build/vim-vimlparser
11
14
fi
@@ -14,8 +17,10 @@ if ! [ -d build/vim-vimlint ]; then
14
17
git clone --depth 1 https://github.com/syngan/vim-vimlint build/vim-vimlint
15
18
fi
16
19
20
+ # Run vimlint
17
21
./build/vim-vimlint/bin/vimlint.sh -l build/vim-vimlint -p build/vim-vimlparser -v .
18
22
23
+ # Ensure vint is available, then run it
19
24
if command -v vint > /dev/null; then
20
25
vint -s .
21
26
elif command -v python3 > /dev/null; then
40
45
echo ' Warning: Skipping vint.' >&2
41
46
fi
42
47
48
+ # Ensure vader.vim is available
43
49
if ! [ -d build/vader.vim ]; then
44
50
git clone --depth 1 https://github.com/junegunn/vader.vim.git build/vader.vim
45
51
fi
46
52
53
+ # Run Vader tests
47
54
exec vim -i NONE -u test-vimrc -U NONE -V1 -nNeXs " $@ " -c ' Vader! test/*.vader'
You can’t perform that action at this time.
0 commit comments