aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/compat53/.travis.yml
diff options
context:
space:
mode:
authorLibravatarLibravatar daurnimator <quae@daurnimator.com> 2018-05-30 17:48:40 +1000
committerLibravatarLibravatar daurnimator <quae@daurnimator.com> 2018-05-30 17:48:58 +1000
commit3a2c1dc98b0ba4ca7e4600cd86f11472311954fc (patch)
tree846aad638a8b23d2a11502642657ca61acf68579 /vendor/compat53/.travis.yml
parent77d38ec3be5030397f895fd19959a87a065fac14 (diff)
parent18b7d200cbaadf7aee592f739e2e0cb4be4ce298 (diff)
downloadluaossl-3a2c1dc98b0ba4ca7e4600cd86f11472311954fc.tar.gz
luaossl-3a2c1dc98b0ba4ca7e4600cd86f11472311954fc.tar.bz2
luaossl-3a2c1dc98b0ba4ca7e4600cd86f11472311954fc.zip
Merge commit '18b7d200cbaadf7aee592f739e2e0cb4be4ce298'
Update to compat-5.3 v0.6
Diffstat (limited to 'vendor/compat53/.travis.yml')
-rw-r--r--vendor/compat53/.travis.yml47
1 files changed, 47 insertions, 0 deletions
diff --git a/vendor/compat53/.travis.yml b/vendor/compat53/.travis.yml
new file mode 100644
index 0000000..af458d8
--- /dev/null
+++ b/vendor/compat53/.travis.yml
@@ -0,0 +1,47 @@
+language: c
+compiler: gcc
+
+sudo: false
+
+env:
+ - LUA="lua=5.1"
+ - LUA="lua=5.1" EXTERNAL=true
+ - LUA="lua=5.1" COMPILER="g++"
+ - LUA="lua=5.1" EXTERNAL=true COMPILER="g++"
+ - LUA="luajit=@v2.1 --compat=none"
+ - LUA="luajit=@v2.1 --compat=none" EXTERNAL=true
+ - LUA="luajit=@v2.1 --compat=all"
+ - LUA="luajit=@v2.1 --compat=all" EXTERNAL=true
+ - LUA="lua=5.2"
+ - LUA="lua=5.2" EXTERNAL=true
+ - LUA="lua=5.2" COMPILER="g++"
+ - LUA="lua=5.2" EXTERNAL=true COMPILER="g++"
+
+branches:
+ only:
+ - master
+
+git:
+ depth: 3
+
+notifications:
+ email: false
+
+before_install:
+ - pip install --user hererocks
+ - hererocks old --$LUA
+ - test -e old/bin/lua || (cd old/bin && ln -s luajit* lua)
+ - hererocks new --lua=5.3
+
+install:
+ - export CC="${COMPILER:-gcc}" DEF="" SRC="" CFLAGS="-Wall -Wextra -Ic-api -O2 -fPIC"
+ - if [ "x${EXTERNAL:-}" = xtrue ]; then DEF="-DCOMPAT53_PREFIX=compat53" SRC="c-api/compat-5.3.c"; fi
+ - ${CC} ${CFLAGS} -Iold/include ${DEF} -shared -o old/testmod.so tests/testmod.c ${SRC}
+ - ${CC} ${CFLAGS} -Inew/include ${DEF} -shared -o new/testmod.so tests/testmod.c ${SRC}
+ - gcc ${CFLAGS} -Iold/include ${DEF} -shared -o old/compat53.so ltablib.c lutf8lib.c lstrlib.c ${SRC}
+
+script:
+ - (cd old && bin/lua ../tests/test.lua) > old.txt
+ - (cd new && bin/lua ../tests/test.lua) > new.txt
+ - diff old.txt new.txt || true
+