From 62100c9d850cb67e61ca2ce8e1622ec449dbbbe7 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Mon, 3 Aug 2020 17:38:07 +0200 Subject: [PATCH] Copy lgi setup from actionless --- .travis.yml | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index f0ca8b288..3ee91e095 100644 --- a/.travis.yml +++ b/.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