-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
66 lines (58 loc) · 1.4 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
language: generic
os:
- linux
- osx
env:
- HEAD=yes
# - HEAD=no
sudo: false
addons:
apt:
packages:
- vim
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-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-override-system-vim --HEAD
else
brew install macvim --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
- python3 --version
script:
- ./tmp/themis/bin/themis
- python3 -m unittest discover test