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
|
sudo: required
dist: xenial
language: c
compiler:
- gcc
branches:
only:
- master
- /^REL_/
git:
depth: 5
env:
matrix:
- PG=9.5 LUAV=lua-5.3.6
- PG=9.6 LUAV=lua-5.3.6
- PG=9.6 LUAV=lua-5.4.2
- PG=10 LUAV=lua-5.3.6
- PG=11 LUAV=lua-5.3.6
- PG=12 LUAV=lua-5.3.6
- PG=12 LUAV=LuaJIT-1e66d0f9e
- PG=13 LUAV=lua-5.3.6
- PG=13 LUAV=lua-5.4.2
addons:
apt:
sources:
- sourceline: "deb http://apt.postgresql.org/pub/repos/apt/ xenial-pgdg main 12"
key_url: "https://www.postgresql.org/media/keys/ACCC4CF8.asc"
- sourceline: "deb http://apt.postgresql.org/pub/repos/apt/ xenial-pgdg-testing main 13"
key_url: "https://www.postgresql.org/media/keys/ACCC4CF8.asc"
before_install:
- sudo /etc/init.d/postgresql stop
- sudo apt-get -y --purge remove postgresql libpq-dev libpq5 postgresql-client-common postgresql-common
- sudo apt-get update
- sudo rm -rf /var/lib/postgresql
- sudo apt-get -y -o Dpkg::Options::=--force-confdef -o Dpkg::Options::="--force-confnew" ${PGREPO:+-t "$PGREPO"} install postgresql-${PG:?} postgresql-contrib-${PG:?} postgresql-server-dev-${PG:?}
- |
mkdir "$LUAV"
if [[ "$LUAV" == lua-* ]]; then
LUA_URL="http://www.lua.org/ftp/"
if [[ "$LUAV" == *-work* ]]; then
LUA_URL="http://www.lua.org/work/"
fi
wget -O- "${LUA_URL}${LUAV}".tar.gz \
| tar zx --strip-components=1 -C "$LUAV"
make -C "$LUAV"/src \
SYSCFLAGS="-DLUA_USE_POSIX -DLUA_USE_DLOPEN -ULUA_COMPAT_5_2" \
SYSLIBS="-Wl,-E -ldl" \
MYCFLAGS="-fPIC" liblua.a lua luac
export LUAC="$PWD/$LUAV/src/luac"
export LUA="$PWD/$LUAV/src/lua"
elif [[ "$LUAV" == LuaJIT-* ]]; then
wget -O- https://github.com/LuaJIT/LuaJIT/archive/"${LUAV#LuaJIT-}".tar.gz \
| tar zx --strip-components=1 -C "$LUAV"
make -C "$LUAV"/src \
XCFLAGS="-DLUAJIT_ENABLE_GC64 -DLUAJIT_ENABLE_LUA52COMPAT" \
CFLAGS="-fPIC -O3" libluajit.a luajit
export LUAJIT="$PWD/$LUAV/src/luajit"
export LUAJITC="cp"
fi
export LUA_INCDIR="$PWD/$LUAV/src"
mv $LUAV/src/liblua*.a ./libcurrent_lua_build.a
export LUALIB="-L$PWD -lcurrent_lua_build"
before_script:
- sudo -u postgres createuser -s "$USER"
script:
- |
make && sudo make install && time make installcheck &&
if [ -z "$NO_HSTORE" ]; then
make -C hstore && sudo make -C hstore install && time make -C hstore installcheck
fi
after_script:
- |
cat regression.diffs || true
cat hstore/regression.diffs || true
|