forked from martanne/vis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
94 lines (87 loc) · 2.28 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
language: c
matrix:
include:
- os: linux
compiler: gcc
env: TARGET=
- os: linux
compiler: clang
env: TARGET=
- os: linux
compiler: gcc
env: TARGET=debug
- os: linux
compiler: clang
env: TARGET=debug
- os: linux
compiler: gcc
env: TARGET=clean
- os: linux
compiler: gcc
env: TARGET= CONFIG=--disable-curses
- os: linux
compiler: gcc
env: TARGET= CONFIG=--disable-lua
- os: linux
compiler: gcc
env: TARGET= CONFIG=--disable-tre
- os: osx
compiler: clang
env: TARGET=
- os: osx
compiler: clang
env: TARGET=debug
- os: osx
compiler: clang
env: TARGET= CONFIG=--disable-curses
- os: osx
compiler: clang
env: TARGET= CONFIG=--disable-lua
- os: osx
compiler: clang
env: TARGET= CONFIG=--disable-tre
addons:
apt:
packages:
- 9base
- libacl1-dev
- libtre-dev
cache:
directories:
- $HOME/.cache/vis
before_install:
- mkdir -p "$HOME/.cache/vis/sources" && mkdir dependency && ln -s "$HOME/.cache/vis/sources" dependency/sources
install:
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then
brew update &&
brew install libtermkey lua tre plan9port &&
luarocks install lpeg &&
luarocks install busted;
fi
script:
- id
- env
- locale
- tty || true
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then
make local && make clean;
fi
- ./configure CFLAGS="-I$(pwd)/dependency/install/usr/include" LDFLAGS="-L$(pwd)/dependency/install/usr/lib" $CONFIG
- make CFLAGS_EXTRA=--coverage $TARGET
- if [ -e vis ]; then
LD_LIBRARY_PATH="$(pwd)/dependency/install/usr/lib" ./vis -v;
file vis;
size vis;
if [ "$TRAVIS_OS_NAME" = "osx" ]; then
otool -L vis;
else
ldd vis;
fi
fi
- make -C test/core coverage
- test ! -e vis || LD_LIBRARY_PATH="$(pwd)/dependency/install/usr/lib" make -C test/lua
- test ! -e vis || LD_LIBRARY_PATH="$(pwd)/dependency/install/usr/lib" make -C test/vis
- test ! -e vis || LD_LIBRARY_PATH="$(pwd)/dependency/install/usr/lib" make -C test/sam
- test ! -e vis || LD_LIBRARY_PATH="$(pwd)/dependency/install/usr/lib" make -C test/vim
after_success:
- bash <(curl -s https://codecov.io/bash)