Skip to content

Commit

Permalink
travis: add ubuntu bionic,xenial (junegunn#867)
Browse files Browse the repository at this point in the history
Travis defaults to it since this year.
Ubuntu trusty reached EOL since April 2019.
Ubuntu bionic provides Vim 8.

Simplify OS install with Travis' apt addon
so that only Vim nightly will be compiled from source.

Ubuntu 14.04.6 provides ruby v.1.9.3, not 1.8.x or older.
Use it to test the ruby provider for backward compatibility.

Signed-off-by: Jan Edmund Lazo <[email protected]>
  • Loading branch information
janlazo authored and junegunn committed Aug 17, 2019
1 parent 8a44109 commit 307b0f2
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 41 deletions.
71 changes: 34 additions & 37 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,54 +1,51 @@
language: ruby
dist: trusty
sudo: false
language: minimal
env:
global:
- DEPS=$HOME/deps
- PATH=$DEPS/bin:$PATH
matrix:
include:
- env: ENV=vim74
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
- env: ENV=vim80-bionic
dist: bionic
- env: ENV=vim-nightly
dist: trusty
- env: ENV=neovim-stable
dist: xenial
addons: {apt: {packages: [neovim], sources: [{sourceline: 'ppa:neovim-ppa/stable'}]}}
- env: ENV=neovim-nightly
dist: xenial
addons: {apt: {packages: [neovim], sources: [{sourceline: 'ppa:neovim-ppa/unstable'}]}}
- env: ENV=vim74-trusty-python
dist: trusty
- env: ENV=vim74-xenial-python3
dist: xenial
- env: ENV=vim74-trusty-ruby
dist: trusty
addons: {apt: {packages: [vim-nox]}}
- env: ENV=vim74-xenial-ruby
dist: xenial
addons: {apt: {packages: [vim-nox]}}
install: |
git config --global user.email "[email protected]"
git config --global user.name "Your Name"
if [ "$ENV" == "vim74" ]; 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
export VADER_OUTPUT_FILE=/dev/stderr
return
fi
C_OPTS="--prefix=$DEPS --with-features=huge --disable-gui "
case "$ENV" in
python)
C_OPTS+=--enable-pythoninterp
vim-*)
;;
neovim-*)
mkdir -p ${DEPS}/bin
ln -s /usr/bin/nvim ${DEPS}/bin/vim
export VADER_OUTPUT_FILE=/dev/stderr
return
;;
python3)
C_OPTS+=--enable-python3interp
vim74-* | vim80-*)
mkdir -p ${DEPS}/bin
ln -s /usr/bin/vim.nox ${DEPS}/bin/vim
return
;;
ruby*)
C_OPTS+=--enable-rubyinterp
*)
return
;;
esac
Expand Down
4 changes: 0 additions & 4 deletions test/test.vader
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,6 @@ Execute (Initialize test environment):
\ ['function! ResetPlug()', 'let s:loaded = {}', 'endfunction',
\ 'function! CompareURI(a, b)', 'return s:compare_git_uri(a:a, a:b)', 'endfunction']

if $ENV != 'vim8'
call add(patch, 'let s:vim8 = 0')
endif

call writefile(extend(readfile($PLUG_TMP), patch), $PLUG_TMP)

set t_Co=256
Expand Down

0 comments on commit 307b0f2

Please sign in to comment.