-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
72 lines (63 loc) · 1.56 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
59
60
61
62
63
64
65
66
67
68
69
70
71
language: generic
os:
- linux
- osx
env:
- HEAD=yes
# - HEAD=no
sudo: false
addons:
apt:
packages:
- language-pack-ja
- vim
- libperl-dev
- python-dev
- python3-dev
- liblua5.1-0-dev
- lua5.1
cache:
directories:
- /tmp/vim
install:
- |
if [ "$TRAVIS_OS_NAME" = "linux" ]; then
if [ x"${HEAD}" = "xyes" ]; then
if [ -d /tmp/vim/.git ]; then
cd /tmp/vim
git fetch
if git diff --exit-code --quiet ..origin/master; then
need_build=0
else
git reset --hard origin/master
git clean -dfx
need_build=1
fi
else
git clone --depth 1 --single-branch https://github.com/vim/vim /tmp/vim
cd /tmp/vim
need_build=1
fi
if [ "${need_build}" = "1" ]; then
./configure --prefix="$PWD/build" --with-features=huge \
--enable-pythoninterp --enable-python3interp \
--enable-luainterp --enable-fail-if-missing
make -j2
make install
fi
export PATH=$PWD/build/bin:$PATH
cd "${TRAVIS_BUILD_DIR}"
fi
else
brew update
if [ x"${HEAD}" = "xyes" ]; then
brew install macvim --with-lua --with-override-system-vim --HEAD
else
brew install macvim --with-lua --with-override-system-vim
fi
fi
git clone --depth 1 --single-branch https://github.com/thinca/vim-themis tmp/themis
before_script:
- vim --cmd version --cmd quit
script:
- ./tmp/themis/bin/themis