forked from junegunn/vim-plug
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
travis: add ubuntu bionic,xenial (junegunn#867)
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
Showing
2 changed files
with
34 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters