Skip to content

Commit 0afb1e1

Browse files
committed
Add .travis.yml with vim and (disabled) neovim modes
1 parent 8ada503 commit 0afb1e1

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.travis.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
language: generic
2+
env:
3+
matrix:
4+
- CI_TARGET=vim
5+
- CI_TARGET=neovim
6+
before_script:
7+
- if [ $CI_TARGET = vim ]; then
8+
sudo apt-get install vim-gnome &&
9+
export DISPLAY=:99.0 &&
10+
sh -e /etc/init.d/xvfb start;
11+
elif [ $CI_TARGET = neovim ]; then
12+
sudo apt-get install python3-dev &&
13+
eval "$(curl -Ss https://raw.githubusercontent.com/neovim/bot-ci/master/scripts/travis-setup.sh) nightly-x64" &&
14+
wget https://bootstrap.pypa.io/get-pip.py &&
15+
sudo python3 get-pip.py --allow-external sudo &&
16+
sudo pip3 install neovim;
17+
fi
18+
- wget https://github.com/google/vroom/releases/download/v0.12.0/vroom_0.12.0-1_all.deb
19+
- sudo dpkg -i ./vroom_0.12.0-1_all.deb
20+
- git clone https://github.com/google/vim-maktaba.git ../maktaba/
21+
- git clone https://github.com/google/vim-glaive.git ../glaive/
22+
- git clone https://github.com/google/vim-codefmtlib.git ../codefmtlib/
23+
script:
24+
- '[ $CI_TARGET = neovim ] && VROOM_ARGS="--neovim" || VROOM_ARGS=""'
25+
- vroom $VROOM_ARGS --crawl ./vroom/
26+
matrix:
27+
allow_failures:
28+
- env: CI_TARGET=neovim

0 commit comments

Comments
 (0)