forked from sile-typesetter/sile
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
90 lines (90 loc) · 2.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
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
language: c
sudo: false
branches:
except:
- appveyor
compiler:
- gcc
addons:
apt:
packages:
- pkg-config
- libgraphite2-dev
- libicu-dev
- libreadline-dev
- libssl-dev
- libfreetype6-dev
- libfontconfig1-dev
- libpng-dev
- libexpat1-dev
- libipc-run-perl
env:
global:
- LUAROCKS=2.4.2
- HARFBUZZ_BASE=harfbuzz-1.7.1
- GRAPHITE=true
- COVERAGE=false
matrix:
- LUA=lua5.3 COVERAGE=true
#- LUA=lua5.3 GRAPHITE=false
- LUA=lua5.2
#- LUA=lua5.2 GRAPHITE=false
- LUA=lua5.1
#- LUA=lua5.1 GRAPHITE=false
cache:
directories:
- $HOME/.fonts
- $HOME/local
# Cache object files etc. to speed up build
- $TRAVIS_BUILD_DIR/libtexpdf
before_install:
- source .travis/setenv_lua.sh
- export LD_LIBRARY_PATH=$HOME/local/lib:$LD_LIBRARY_PATH
- export LIBRARY_PATH=$HOME/local/lib:$LD_LIBRARY_PATH
- export LD_RUN_PATH=$HOME/local/lib:$LD_RUN_PATH
- export PKG_CONFIG_PATH=$HOME/local/lib/pkgconfig:$PKG_CONFIG_PATH
- if [ ! -f ~/.fonts/NotoSansMalayalam-Regular.ttf ]; then
pushd ~/.fonts/ ;
wget http://dealer.simon-cozens.org/~simon/tmp/silefonts.tar.gz ;
tar xvf silefonts.tar.gz ;
popd ;
fi
- if [ ! -f ~/local/include/harfbuzz/hb.h ]; then
mkdir ~/local/ || true;
mkdir ~/builddeps / || true;
pushd ~/builddeps/ ;
wget http://www.freedesktop.org/software/harfbuzz/release/$HARFBUZZ_BASE.tar.bz2 ;
tar xfj $HARFBUZZ_BASE.tar.bz2 ;
cd $HARFBUZZ_BASE ;
./configure --with$($GRAPHITE || echo 'out')-graphite2 --prefix=$HOME/local/ ;
make ;
make install ;
popd ;
fi
- export LUA_HOME_DIR=$TRAVIS_BUILD_DIR/install/lua
- export LUA=~/.lua/lua
- export LUA_INCLUDE=-I$LUA_HOME_DIR/include
- export LD_LIBRARY_PATH=$LUA_HOME_DIR/lib:$LD_LIBRARY_PATH
- export LIBRARY_PATH=$LUA_HOME_DIR/lib:$LD_LIBRARY_PATH
- export LD_RUN_PATH=$LUA_HOME_DIR/lib:$LD_RUN_PATH
- export PATH=.travis:$PATH
install:
- luarocks install lpeg
- luarocks install lua-zlib
- luarocks install luaexpat
- luarocks install luafilesystem
- luarocks install luasocket
- luarocks install luasec
- luarocks install lua_cliargs 2.3-3
- luarocks install busted
- luarocks install luacov 0.8-1
- luarocks install luacov-coveralls
script:
- fold_unless_fail 'Building' 'build' sh -c './bootstrap.sh && ./configure && make'
- fold_unless_fail 'busted' 'busted' busted --cpath="core/?.so" -m './lua-libraries/?.lua;./lua-libraries/?/init.lua' tests
- fold_unless_fail 'Run regression tests' 'regression' make test
- fold_unless_fail 'Compile documentation and examples' 'compile_docs' make docs
- fold_unless_fail 'Versions' 'versions' ./sile --debug=fonts,versions tests/bug-117.sil
after_success:
- $COVERAGE && travis_wait make coverage
- $COVERAGE && travis_wait luacov-coveralls -e lua.libraries