aboutsummaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorPhilipp Janda <siffiejoe@gmx.net>2017-09-18 20:04:24 +0200
committerHisham Muhammad <hisham@gobolinux.org>2017-09-18 15:04:24 -0300
commit9cb6834fe07297ba79e7453978cf7e7d8d8c339a (patch)
tree0d5f92eafd97efaa43b2c0b67b19c7b44c35d424 /.travis.yml
parentee2d198f62aeb52751db934a537ee6b0ef164662 (diff)
downloadlua-compat-5.3-9cb6834fe07297ba79e7453978cf7e7d8d8c339a.tar.gz
lua-compat-5.3-9cb6834fe07297ba79e7453978cf7e7d8d8c339a.tar.bz2
lua-compat-5.3-9cb6834fe07297ba79e7453978cf7e7d8d8c339a.zip
Add Travis-CI integration
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml47
1 files changed, 47 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..af458d8
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,47 @@
1language: c
2compiler: gcc
3
4sudo: false
5
6env:
7 - LUA="lua=5.1"
8 - LUA="lua=5.1" EXTERNAL=true
9 - LUA="lua=5.1" COMPILER="g++"
10 - LUA="lua=5.1" EXTERNAL=true COMPILER="g++"
11 - LUA="luajit=@v2.1 --compat=none"
12 - LUA="luajit=@v2.1 --compat=none" EXTERNAL=true
13 - LUA="luajit=@v2.1 --compat=all"
14 - LUA="luajit=@v2.1 --compat=all" EXTERNAL=true
15 - LUA="lua=5.2"
16 - LUA="lua=5.2" EXTERNAL=true
17 - LUA="lua=5.2" COMPILER="g++"
18 - LUA="lua=5.2" EXTERNAL=true COMPILER="g++"
19
20branches:
21 only:
22 - master
23
24git:
25 depth: 3
26
27notifications:
28 email: false
29
30before_install:
31 - pip install --user hererocks
32 - hererocks old --$LUA
33 - test -e old/bin/lua || (cd old/bin && ln -s luajit* lua)
34 - hererocks new --lua=5.3
35
36install:
37 - export CC="${COMPILER:-gcc}" DEF="" SRC="" CFLAGS="-Wall -Wextra -Ic-api -O2 -fPIC"
38 - if [ "x${EXTERNAL:-}" = xtrue ]; then DEF="-DCOMPAT53_PREFIX=compat53" SRC="c-api/compat-5.3.c"; fi
39 - ${CC} ${CFLAGS} -Iold/include ${DEF} -shared -o old/testmod.so tests/testmod.c ${SRC}
40 - ${CC} ${CFLAGS} -Inew/include ${DEF} -shared -o new/testmod.so tests/testmod.c ${SRC}
41 - gcc ${CFLAGS} -Iold/include ${DEF} -shared -o old/compat53.so ltablib.c lutf8lib.c lstrlib.c ${SRC}
42
43script:
44 - (cd old && bin/lua ../tests/test.lua) > old.txt
45 - (cd new && bin/lua ../tests/test.lua) > new.txt
46 - diff old.txt new.txt || true
47