Copy lgi setup from actionless

This commit is contained in:
Uli Schlachter 2020-08-03 17:38:07 +02:00
parent 703d5eee41
commit 62100c9d85
1 changed files with 16 additions and 2 deletions

View File

@ -45,7 +45,7 @@ addons:
jobs:
include:
- env: LUA=5.4
- env: LUA=5.4 LGIVER=git
env:
global:
@ -92,7 +92,21 @@ install:
&& make build \
&& sudo make install)
- travis_retry sudo luarocks install lgi $LGIVER
- |
if [[ "$LGIVER" == "git" ]]; then
# Build LGI from git:
travis_retry git clone https://github.com/pavouk/lgi.git lgi
(cd lgi
make LUA_INCDIR=${LUAINCLUDE} LUA_VERSION=${LUA} LUA_CFLAGS="-I${LUAINCLUDE}"
sudo make \
LUA_LIBDIR=/usr/lib/lua/${LUA} \
LUA_SHAREDIR=/usr/share/lua/${LUA} \
LUA_VERSION=${LUA} \
install)
else
# Install LGI (for the selected version):
travis_retry sudo luarocks install lgi $LGIVER
fi
# Install busted for "make check-unit".
- travis_retry sudo luarocks install busted