Skip to content

Commit

Permalink
Travis CI: sudo: false (junegunn#561)
Browse files Browse the repository at this point in the history
  • Loading branch information
blueyed authored and junegunn committed Jan 1, 2017
1 parent 0b1343b commit d5e9f91
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 13 deletions.
11 changes: 4 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
language: ruby
sudo: required
sudo: false
env:
global:
- DEPS=$HOME/deps
Expand Down Expand Up @@ -30,13 +30,10 @@ install: |
ln -s /usr/bin/vim.nox ${DEPS}/bin/vim
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
# 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 /usr/bin/nvim ${DEPS}/bin/vim
ln -s $(which nvim) ${DEPS}/bin/vim
return
fi
Expand Down
11 changes: 5 additions & 6 deletions test/run
Original file line number Diff line number Diff line change
Expand Up @@ -113,13 +113,12 @@ clone_repos
prepare

git --version
VIM=$(select_vim)
echo "Selected Vim: $VIM"
vim=$(select_vim)
echo "Selected Vim: $vim"
if [ "${1:-}" = '!' ]; then
$VIM -Nu $TEMP/mini-vimrc -c 'Vader! test.vader' > /dev/null &&
$vim -Nu $TEMP/mini-vimrc -c 'Vader! test.vader' > /dev/null &&
prepare &&
$VIM -Nu $TEMP/mini-vimrc -c 'let g:plug_threads = 1 | Vader! test.vader' > /dev/null
$vim -Nu $TEMP/mini-vimrc -c 'let g:plug_threads = 1 | Vader! test.vader' > /dev/null
else
$VIM -Nu $TEMP/mini-vimrc -c 'Vader test.vader'
$vim -Nu $TEMP/mini-vimrc -c 'Vader test.vader'
fi

0 comments on commit d5e9f91

Please sign in to comment.