forked from google/vim-codefmt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
31 lines (31 loc) · 1.24 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
language: generic
env:
matrix:
# This Maktaba version should match the minimum required in instant/flags.vim.
- CI_TARGET=vim MAKTABA_VERSION=1.10.0
- CI_TARGET=vim MAKTABA_VERSION=master
- CI_TARGET=neovim MAKTABA_VERSION=master
before_script:
- sudo apt-get update
- sudo apt-get install python3-dev
- if [ $CI_TARGET = vim ]; then
sudo apt-get install vim-gnome &&
export DISPLAY=:99.0 &&
sh -e /etc/init.d/xvfb start;
elif [ $CI_TARGET = neovim ]; then
eval "$(curl -Ss https://raw.githubusercontent.com/neovim/bot-ci/master/scripts/travis-setup.sh) nightly-x64" &&
wget https://bootstrap.pypa.io/get-pip.py &&
sudo python3 get-pip.py --allow-external sudo &&
sudo pip3 install neovim;
fi
- wget https://github.com/google/vroom/releases/download/v0.12.0/vroom_0.12.0-1_all.deb
- sudo dpkg -i ./vroom_0.12.0-1_all.deb
- git clone -b ${MAKTABA_VERSION} https://github.com/google/vim-maktaba.git ../maktaba/
- git clone https://github.com/google/vim-glaive.git ../glaive/
script:
- '[ $CI_TARGET = neovim ] && VROOM_ARGS="--neovim" || VROOM_ARGS=""'
- vroom $VROOM_ARGS --crawl ./vroom/
matrix:
fast_finish: true
allow_failures:
- env: CI_TARGET=neovim MAKTABA_VERSION=master