1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-03 14:50:04 +08:00

Merge pull request #881 from blueyed/build-improvements

Build improvements
This commit is contained in:
Wang Shidong 2017-10-06 21:43:26 -05:00 committed by GitHub
commit 247053d8c4
6 changed files with 21 additions and 16 deletions

1
.gitignore vendored
View File

@ -24,3 +24,4 @@ cscope.files
cscope.out cscope.out
cscope.in.out cscope.in.out
cscope.po.out cscope.po.out
build/

View File

@ -34,18 +34,15 @@ install:
elif [ "${LINT#vint}" != "$LINT" ]; then elif [ "${LINT#vint}" != "$LINT" ]; then
virtualenv /tmp/vint && source /tmp/vint/bin/activate && pip install vim-vint virtualenv /tmp/vint && source /tmp/vint/bin/activate && pip install vim-vint
elif [ "${LINT#vader}" != "$LINT" ]; then elif [ "${LINT#vader}" != "$LINT" ]; then
git clone https://github.com/junegunn/vader.vim.git /tmp/vader
C_OPTS="--prefix=$DEPS --with-features=huge --disable-gui --enable-pythoninterp" C_OPTS="--prefix=$DEPS --with-features=huge --disable-gui --enable-pythoninterp"
git clone --depth 1 https://github.com/vim/vim (git clone --depth 1 https://github.com/vim/vim /tmp/vim &&
cd vim cd /tmp/vim &&
./configure $C_OPTS ./configure $C_OPTS &&
make make install)
make install
cd -
fi fi
script: script:
- | - |
set -e set -ex
if [ "$LINT" = "vimlint" ]; then if [ "$LINT" = "vimlint" ]; then
for file in $(find . -name "*.vim"); for file in $(find . -name "*.vim");
do do
@ -61,5 +58,5 @@ script:
elif [ "$LINT" = "vint-errors" ]; then elif [ "$LINT" = "vint-errors" ]; then
vint --error . vint --error .
elif [ "$LINT" = "vader" ]; then elif [ "$LINT" = "vader" ]; then
vim -Nu test/test.vim -c 'Vader! test/**' make test
fi fi

13
Makefile Normal file
View File

@ -0,0 +1,13 @@
test: build/vader | build
vim -Nu test/vimrc -c 'Vader! test/**'
build/vader:
git clone --depth 1 https://github.com/junegunn/vader.vim.git $@
build:
mkdir -p $@
clean:
$(RM) -r build
.PHONY: clean test

View File

@ -1,2 +0,0 @@
[run]
plugins = covimerage

View File

@ -1,4 +0,0 @@
if [ ! -e /tmp/vader ]; then
git clone https://github.com/junegunn/vader.vim.git /tmp/vader
fi
vim -Nu test/test.vim -c 'Vader! test/**'

View File

@ -1,5 +1,5 @@
filetype off filetype off
set rtp+=/tmp/vader set rtp+=build/vader
set rtp+=. set rtp+=.
set rtp+=after set rtp+=after
filetype plugin indent on filetype plugin indent on