Copy lgi setup from actionless
This commit is contained in:
parent
703d5eee41
commit
62100c9d85
18
.travis.yml
18
.travis.yml
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue