mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-03-13 02:05:40 +08:00
fix lint
This commit is contained in:
parent
84d4a25861
commit
e1f168845b
51
.travis.yml
51
.travis.yml
@ -1,9 +1,13 @@
|
|||||||
language: vim
|
language: python
|
||||||
|
sudo: false
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
pip: true
|
pip: true
|
||||||
|
|
||||||
env:
|
env:
|
||||||
|
global:
|
||||||
|
- DEPS=$HOME/deps
|
||||||
|
- PATH=$DEPS/bin:$PATH
|
||||||
matrix:
|
matrix:
|
||||||
- LINT=vimlint-errors
|
- LINT=vimlint-errors
|
||||||
- LINT=vimlint
|
- LINT=vimlint
|
||||||
@ -15,6 +19,22 @@ matrix:
|
|||||||
allow_failures:
|
allow_failures:
|
||||||
- env: LINT=vimlint
|
- env: LINT=vimlint
|
||||||
- env: LINT=vint
|
- env: LINT=vint
|
||||||
|
include:
|
||||||
|
- env: ENV=vim72
|
||||||
|
rvm: 1.8.7
|
||||||
|
addons: { apt: { packages: [vim-nox] } }
|
||||||
|
- env: ENV=python
|
||||||
|
rvm: 1.8.7
|
||||||
|
addons: { apt: { packages: [python2.7-dev] } }
|
||||||
|
- env: ENV=python3
|
||||||
|
rvm: 1.8.7
|
||||||
|
addons: { apt: { packages: [python3-dev] } }
|
||||||
|
- env: ENV=ruby18
|
||||||
|
rvm: 1.8.7
|
||||||
|
- env: ENV=ruby20
|
||||||
|
rvm: 2.0.0
|
||||||
|
- env: ENV=neovim
|
||||||
|
- env: ENV=vim8
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- |
|
- |
|
||||||
@ -26,6 +46,35 @@ install:
|
|||||||
elif [ "${LINT#vader}" != "$LINT" ]; then
|
elif [ "${LINT#vader}" != "$LINT" ]; then
|
||||||
git clone https://github.com/junegunn/vader.vim.git /tmp/vader
|
git clone https://github.com/junegunn/vader.vim.git /tmp/vader
|
||||||
fi
|
fi
|
||||||
|
if [ "$ENV" == "vim72" ]; then
|
||||||
|
mkdir -p ${DEPS}/bin
|
||||||
|
ln -s /usr/bin/vim.nox ${DEPS}/bin/vim
|
||||||
|
return
|
||||||
|
elif [ "$ENV" == "neovim" ]; then
|
||||||
|
# https://github.com/neovim/bot-ci#nightly-builds
|
||||||
|
eval "$(curl -Ss https://raw.githubusercontent.com/neovim/bot-ci/master/scripts/travis-setup.sh) nightly-x64"
|
||||||
|
mkdir -p ${DEPS}/bin
|
||||||
|
ln -s $(which nvim) ${DEPS}/bin/vim
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
C_OPTS="--prefix=$DEPS --with-features=huge --disable-gui "
|
||||||
|
case "$ENV" in
|
||||||
|
python)
|
||||||
|
C_OPTS+=--enable-pythoninterp
|
||||||
|
;;
|
||||||
|
python3)
|
||||||
|
C_OPTS+=--enable-python3interp
|
||||||
|
;;
|
||||||
|
ruby*)
|
||||||
|
C_OPTS+=--enable-rubyinterp
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
git clone --depth 1 https://github.com/vim/vim
|
||||||
|
cd vim
|
||||||
|
./configure $C_OPTS
|
||||||
|
make
|
||||||
|
make install
|
||||||
|
cd -
|
||||||
script:
|
script:
|
||||||
- |
|
- |
|
||||||
if [ "$LINT" = "vimlint" ]; then
|
if [ "$LINT" = "vimlint" ]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user