mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-03 11:50:05 +08:00
Merge pull request #881 from blueyed/build-improvements
Build improvements
This commit is contained in:
commit
247053d8c4
1
.gitignore
vendored
1
.gitignore
vendored
@ -24,3 +24,4 @@ cscope.files
|
|||||||
cscope.out
|
cscope.out
|
||||||
cscope.in.out
|
cscope.in.out
|
||||||
cscope.po.out
|
cscope.po.out
|
||||||
|
build/
|
||||||
|
15
.travis.yml
15
.travis.yml
@ -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
13
Makefile
Normal 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
|
@ -1,2 +0,0 @@
|
|||||||
[run]
|
|
||||||
plugins = covimerage
|
|
@ -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/**'
|
|
@ -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
|
Loading…
Reference in New Issue
Block a user