-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
58 lines (56 loc) · 1.78 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
---
language: vim
before_script:
- export REPO_DIR=$(pwd)
- |
echo 'Build and install vim 7.4.1304.'
cd ~/
sudo apt-get remove vim -y
git clone https://github.com/vim/vim
cd vim
git checkout v7.4.1304
./configure --with-features=huge --prefix=$HOME/out/7.4.1304
make install
- |
echo 'Build and install vim 8.1+'
make distclean
git checkout master
./configure --with-features=huge --prefix=$HOME/out/8
make install
- |
echo 'Add neovim PPA.'
if [[ `lsb_release -r | awk '{print $2}'` < 16.04 ]]; then
echo "Using neovim-ppa/unstable for Ubuntu version older than 16.04."
sudo add-apt-repository ppa:neovim-ppa/unstable -y
else
echo "Using neovim-ppa/stable for Ubuntu version 16.04 or newer."
sudo add-apt-repository ppa:neovim-ppa/stable -y
fi
- sudo apt-get update -q
- |
echo 'Install foreign language packs for international tests.'
sudo apt-get install -y language-pack-de language-pack-es
- |
echo 'Install neovim.'
sudo apt-get install -y neovim
nvim --version
- |
echo 'Clone dependencies.'
mkdir -p ~/.vim/bundle
git clone https://github.com/junegunn/vader.vim ~/.vim/bundle/vader.vim
git clone https://github.com/Google/vim-maktaba ~/.vim/bundle/vim-maktaba
script:
- cd "$REPO_DIR/test" # to make handling filepaths easier
- |
VIM_EXE=$HOME/out/7.4.1304/bin/vim
echo 'Running Vim 7.4 tests.' \
&& $VIM_EXE --version \
&& ./run_tests.sh --vim --vim_exe=$VIM_EXE --international
- |
VIM_EXE=$HOME/out/8/bin/vim
echo 'Running Vim 8.1+ tests.' \
&& $VIM_EXE --version \
&& ./run_tests.sh --vim --vim_exe=$VIM_EXE --international
- |
echo 'Running neovim tests.' \
&& ./run_tests.sh --neovim --international