Skip to content

Commit

Permalink
Merge pull request #75 from o-lim/travis-setup-wget
Browse files Browse the repository at this point in the history
Use wget in travis setup instead of curl
  • Loading branch information
ajacksified committed Feb 9, 2015
2 parents 6585bd2 + 6f8ead4 commit d8237f5
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .travis_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,26 @@
# Sets up Lua and Luarocks.
# LUA must be "Lua 5.1", "Lua 5.2" or "LuaJIT 2.0".

set -e

if [ "$LUA" == "LuaJIT 2.0" ]; then
curl http://luajit.org/download/LuaJIT-2.0.2.tar.gz | tar xz
wget -O - http://luajit.org/download/LuaJIT-2.0.2.tar.gz | tar xz
cd LuaJIT-2.0.2
make && sudo make install INSTALL_TSYMNAME=lua;
else
if [ "$LUA" == "Lua 5.1" ]; then
curl http://www.lua.org/ftp/lua-5.1.5.tar.gz | tar xz
wget -O - http://www.lua.org/ftp/lua-5.1.5.tar.gz | tar xz
cd lua-5.1.5;
elif [ "$LUA" == "Lua 5.2" ]; then
curl http://www.lua.org/ftp/lua-5.2.3.tar.gz | tar xz
wget -O - http://www.lua.org/ftp/lua-5.2.3.tar.gz | tar xz
cd lua-5.2.3;
fi
sudo make linux install;
fi

cd ..
curl http://luarocks.org/releases/luarocks-2.1.2.tar.gz | tar xz
cd luarocks-2.1.2
wget -O - http://luarocks.org/releases/luarocks-2.2.0.tar.gz | tar xz
cd luarocks-2.2.0

if [ "$LUA" == "LuaJIT 2.0" ]; then
./configure --with-lua-include=/usr/local/include/luajit-2.0;
Expand Down

0 comments on commit d8237f5

Please sign in to comment.