Skip to content

Commit

Permalink
Merge pull request #33 from moteus/master
Browse files Browse the repository at this point in the history
Update Travis files and Lua 5.2/LuaRocks versions
  • Loading branch information
moteus committed Mar 27, 2015
2 parents 0246116 + 4fbaa56 commit e1ca8e1
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 14 deletions.
10 changes: 5 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ language: c

env:
global:
- LUAROCKS=2.2.0beta1
- LUAROCKS=2.2.1
matrix:
# You can set PERF only for luajit/ffi
# todo: install libffi and test ffi binding on Lua 5.1/5.2
Expand Down Expand Up @@ -41,11 +41,11 @@ before_install:

install:
- sudo pip install cpp-coveralls
- sudo luarocks install luafilesystem --from=https://rocks.moonscript.org/dev
- sudo luarocks install lua-path --deps-mode=none
- sudo luarocks install luafilesystem
- sudo luarocks install lua-path
- sudo luarocks install luacov-coveralls
- sudo luarocks install lua-llthreads2 --server=http://rocks.moonscript.org/dev
- sudo luarocks install https://raw.github.com/moteus/lunit/moteus-skip/rockspecs/lunitx-scm.mot.skip-0.rockspec
- sudo luarocks install lua-llthreads2
- sudo luarocks install lunitx

- if [ $LZMQ = "ffi-lua" ]; then
sudo luarocks install ljsyscall 0.9;
Expand Down
2 changes: 1 addition & 1 deletion .travis/platform.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
if [ -z "$PLATFORM" ]; then
if [ -z "${PLATFORM:-}" ]; then
PLATFORM=$TRAVIS_OS_NAME;
fi

Expand Down
13 changes: 10 additions & 3 deletions .travis/setup_lua.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,17 @@
# luajit2.0 - master v2.0
# luajit2.1 - master v2.1

set -eufo pipefail

LUAJIT_BASE="LuaJIT-2.0.3"

source .travis/platform.sh

echo "==============================="
echo " Platform : $PLATFORM "
echo "==============================="
echo

LUAJIT="no"

if [ "$PLATFORM" == "macosx" ]; then
Expand Down Expand Up @@ -54,8 +61,8 @@ else
curl http://www.lua.org/ftp/lua-5.1.5.tar.gz | tar xz
cd lua-5.1.5;
elif [ "$LUA" == "lua5.2" ]; then
curl http://www.lua.org/ftp/lua-5.2.3.tar.gz | tar xz
cd lua-5.2.3;
curl http://www.lua.org/ftp/lua-5.2.4.tar.gz | tar xz
cd lua-5.2.4;
elif [ "$LUA" == "lua5.3" ]; then
curl http://www.lua.org/ftp/lua-5.3.0.tar.gz | tar xz
cd lua-5.3.0;
Expand Down Expand Up @@ -95,7 +102,7 @@ if [ "$LUAJIT" == "yes" ]; then
elif [ "$LUA" == "lua5.1" ]; then
rm -rf lua-5.1.5;
elif [ "$LUA" == "lua5.2" ]; then
rm -rf lua-5.2.3;
rm -rf lua-5.2.4;
elif [ "$LUA" == "lua5.3" ]; then
rm -rf lua-5.3.0;
fi
2 changes: 2 additions & 0 deletions .travis/setup_sodium.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# PLATFORM must be "linux" or "macosx"

set -eufo pipefail

git clone git://github.com/jedisct1/libsodium.git
cd libsodium
./autogen.sh
Expand Down
7 changes: 2 additions & 5 deletions .travis/setup_zmq.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@

source .travis/platform.sh
set -eufo pipefail

echo "==============================="
echo " Platform : $PLATFORM "
echo "==============================="
echo
source .travis/platform.sh

if [ "$PLATFORM" == "linux" ]; then
sudo apt-get remove libzmq3;
Expand Down

0 comments on commit e1ca8e1

Please sign in to comment.