diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..f0c137f --- /dev/null +++ b/.travis.yml @@ -0,0 +1,26 @@ +language: php + +addons: + apt: + packages: + - liblua5.2-dev + +php: + - 5.3 + - 5.4 + - 5.5 + - 5.6 + +notifications: + email: false + irc: "irc.efnet.org#php.yaf" + +env: + - REPORT_EXIT_STATUS=1 NO_INTERACTION=1 + +#Compile +before_script: + - ./travis/compile.sh + +# Run PHPs run-tests.php +script: make test diff --git a/README b/README index 2825319..387e15f 100644 --- a/README +++ b/README @@ -1,2 +1,5 @@ -"Lua is a powerful, fast, light-weight, embeddable scripting language." +##PHP Lua +====== This extension embeds the lua interpreter and offers an OO-API to lua variables and functions. + +"Lua is a powerful, fast, light-weight, embeddable scripting language." diff --git a/config.m4 b/config.m4 index ac18332..9c9c0ba 100755 --- a/config.m4 +++ b/config.m4 @@ -1,6 +1,7 @@ dnl $Id: config.m4 321796 2012-01-05 17:23:48Z laruence $ PHP_ARG_WITH(lua, for lua support, [ --with-lua=[DIR] Include php lua support]) + PHP_ARG_WITH(lua-version, to specify a custom lua version, [ --with-lua-version=[VERSION]] Use the specified lua version.) if test "$PHP_LUA" != "no"; then diff --git a/travis/compile.sh b/travis/compile.sh new file mode 100755 index 0000000..c6009a8 --- /dev/null +++ b/travis/compile.sh @@ -0,0 +1,2 @@ +#!/bin/sh +phpize && ./configure --with-lua-version=5.2 && make