Set up Travis CI build for Neovim
This commit is contained in:
parent
7928057108
commit
3f7344d2cc
22
.travis.yml
22
.travis.yml
|
@ -1,12 +1,12 @@
|
||||||
language: ruby
|
language: ruby
|
||||||
sudo: false
|
sudo: required
|
||||||
env:
|
env:
|
||||||
global:
|
global:
|
||||||
- DEPS=$HOME/deps
|
- DEPS=$HOME/deps
|
||||||
- PATH=$DEPS/bin:$PATH
|
- PATH=$DEPS/bin:$PATH
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- env: ENV=nox
|
- env: ENV=vim72
|
||||||
rvm: 1.8.7
|
rvm: 1.8.7
|
||||||
addons: { apt: { packages: [vim-nox] } }
|
addons: { apt: { packages: [vim-nox] } }
|
||||||
- env: ENV=python
|
- env: ENV=python
|
||||||
|
@ -15,18 +15,28 @@ matrix:
|
||||||
- env: ENV=python3
|
- env: ENV=python3
|
||||||
rvm: 1.8.7
|
rvm: 1.8.7
|
||||||
addons: { apt: { packages: [python3-dev] } }
|
addons: { apt: { packages: [python3-dev] } }
|
||||||
- env: ENV=ruby
|
- env: ENV=ruby18
|
||||||
rvm: 1.8.7
|
rvm: 1.8.7
|
||||||
- env: ENV=ruby
|
- env: ENV=ruby20
|
||||||
rvm: 2.0.0
|
rvm: 2.0.0
|
||||||
|
- env: ENV=neovim
|
||||||
install: |
|
install: |
|
||||||
git config --global user.email "you@example.com"
|
git config --global user.email "you@example.com"
|
||||||
git config --global user.name "Your Name"
|
git config --global user.name "Your Name"
|
||||||
|
|
||||||
if [ "$ENV" == "nox" ]; then
|
if [ "$ENV" == "vim72" ]; then
|
||||||
mkdir -p ${DEPS}/bin
|
mkdir -p ${DEPS}/bin
|
||||||
ln -s /usr/bin/vim.nox ${DEPS}/bin/vim
|
ln -s /usr/bin/vim.nox ${DEPS}/bin/vim
|
||||||
return
|
return
|
||||||
|
elif [ "$ENV" == "neovim" ]; then
|
||||||
|
# https://github.com/neovim/neovim/wiki/Installing-Neovim
|
||||||
|
sudo apt-get install -y software-properties-common
|
||||||
|
sudo add-apt-repository -y ppa:neovim-ppa/unstable
|
||||||
|
sudo apt-get update -y
|
||||||
|
sudo apt-get install -y neovim
|
||||||
|
mkdir -p ${DEPS}/bin
|
||||||
|
ln -s /usr/bin/nvim ${DEPS}/bin/vim
|
||||||
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
C_OPTS="--prefix=$DEPS --with-features=huge --disable-gui "
|
C_OPTS="--prefix=$DEPS --with-features=huge --disable-gui "
|
||||||
|
@ -37,7 +47,7 @@ install: |
|
||||||
python3)
|
python3)
|
||||||
C_OPTS+=--enable-python3interp
|
C_OPTS+=--enable-python3interp
|
||||||
;;
|
;;
|
||||||
ruby)
|
ruby*)
|
||||||
C_OPTS+=--enable-rubyinterp
|
C_OPTS+=--enable-rubyinterp
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
4
plug.vim
4
plug.vim
|
@ -1537,7 +1537,9 @@ class Plugin(object):
|
||||||
actual_uri = self.repo_uri()
|
actual_uri = self.repo_uri()
|
||||||
expect_uri = self.args['uri']
|
expect_uri = self.args['uri']
|
||||||
regex = re.compile(r'^(?:\w+://)?(?:[^@/]*@)?([^:/]*(?::[0-9]*)?)[:/](.*?)(?:\.git)?/?$')
|
regex = re.compile(r'^(?:\w+://)?(?:[^@/]*@)?([^:/]*(?::[0-9]*)?)[:/](.*?)(?:\.git)?/?$')
|
||||||
if regex.match(actual_uri).groups() != regex.match(expect_uri).groups():
|
ma = regex.match(actual_uri)
|
||||||
|
mb = regex.match(expect_uri)
|
||||||
|
if ma is None or mb is None or ma.groups() != mb.groups():
|
||||||
msg = ['',
|
msg = ['',
|
||||||
'Invalid URI: {0}'.format(actual_uri),
|
'Invalid URI: {0}'.format(actual_uri),
|
||||||
'Expected {0}'.format(expect_uri),
|
'Expected {0}'.format(expect_uri),
|
||||||
|
|
|
@ -70,14 +70,16 @@ Execute (Initialize test environment):
|
||||||
Execute (Print Interpreter Version):
|
Execute (Print Interpreter Version):
|
||||||
redir => out
|
redir => out
|
||||||
if has('ruby')
|
if has('ruby')
|
||||||
silent ruby puts 'Ruby: ' + RUBY_VERSION
|
silent! ruby puts 'Ruby: ' + RUBY_VERSION
|
||||||
elseif has('python')
|
endif
|
||||||
silent python import sys; svi = sys.version_info; print 'Python: {}.{}.{}'.format(svi[0], svi[1], svi[2])
|
if has('python')
|
||||||
elseif has('python3')
|
silent! python import sys; svi = sys.version_info; print 'Python: {}.{}.{}'.format(svi[0], svi[1], svi[2])
|
||||||
silent python3 import sys; svi = sys.version_info; print('Python: {}.{}.{}'.format(svi[0], svi[1], svi[2]))
|
endif
|
||||||
|
if has('python3')
|
||||||
|
silent! python3 import sys; svi = sys.version_info; print('Python: {}.{}.{}'.format(svi[0], svi[1], svi[2]))
|
||||||
endif
|
endif
|
||||||
redir END
|
redir END
|
||||||
Log substitute(out, '\n', '', 'g')
|
Log split(out, '\n')
|
||||||
|
|
||||||
Include: workflow.vader
|
Include: workflow.vader
|
||||||
Include: regressions.vader
|
Include: regressions.vader
|
||||||
|
|
Loading…
Reference in New Issue
Block a user