mirror of
https://github.com/kikito/middleclass.git
synced 2024-11-08 09:34:22 +00:00
first try at using hererocks for travis
This commit is contained in:
parent
0803eb192a
commit
d830a07e77
24
.travis.yml
24
.travis.yml
@ -1,19 +1,21 @@
|
||||
language: c
|
||||
language: python
|
||||
sudo: false
|
||||
|
||||
env:
|
||||
- LUA='Lua 5.1'
|
||||
- LUA='Lua 5.2'
|
||||
- LUA='Lua 5.3'
|
||||
- LUA='LuaJIT 2.0'
|
||||
- LUA="lua=5.1"
|
||||
- LUA="lua=5.2"
|
||||
- LUA="lua=5.3"
|
||||
- LUA="luajit=2.0"
|
||||
- LUA="luajit=2.1"
|
||||
|
||||
before_install:
|
||||
- bash .travis_setup.sh
|
||||
- pip install hererocks
|
||||
- hererocks base -r^ --$LUA
|
||||
- export PATH=$PATH:$PWD/base/bin # Add directory with all installed binaries to PATH
|
||||
- luarocks install busted
|
||||
|
||||
install:
|
||||
- sudo apt-get update -qq
|
||||
- sudo luarocks install busted
|
||||
|
||||
script: busted -v
|
||||
script:
|
||||
- busted -v
|
||||
|
||||
branches:
|
||||
except:
|
||||
|
@ -1,44 +0,0 @@
|
||||
# A script for setting up environment for travis-ci testing.
|
||||
# Sets up Lua and Luarocks.
|
||||
# LUA must be "Lua 5.1", "Lua 5.2", "Lua 5.3" or "LuaJIT 2.0".
|
||||
|
||||
set -e
|
||||
|
||||
echo 'rocks_servers = {
|
||||
"http://rocks.moonscript.org/",
|
||||
"http://luarocks.org/repositories/rocks",
|
||||
"http://luarocks.logiceditor.com/rocks",
|
||||
"http://liblua.so/luarocks/repositories/rocks"
|
||||
}' >> ~/config.lua
|
||||
|
||||
|
||||
if [ "$LUA" == "LuaJIT 2.0" ]; then
|
||||
wget -O - http://luajit.org/download/LuaJIT-2.0.3.tar.gz | tar xz
|
||||
cd LuaJIT-2.0.3
|
||||
make && sudo make install INSTALL_TSYMNAME=lua;
|
||||
else
|
||||
if [ "$LUA" == "Lua 5.1" ]; then
|
||||
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
|
||||
wget -O - http://www.lua.org/ftp/lua-5.2.4.tar.gz | tar xz
|
||||
cd lua-5.2.4;
|
||||
elif [ "$LUA" == "Lua 5.3" ]; then
|
||||
wget -O - http://www.lua.org/ftp/lua-5.3.0.tar.gz | tar xz
|
||||
cd lua-5.3.0;
|
||||
fi
|
||||
sudo make linux install;
|
||||
fi
|
||||
|
||||
cd ..
|
||||
wget -O - http://luarocks.org/releases/luarocks-2.2.2.tar.gz | tar xz || wget -O - http://keplerproject.github.io/luarocks/releases/luarocks-2.2.2.tar.gz | tar xz
|
||||
cd luarocks-2.2.2
|
||||
|
||||
if [ "$LUA" == "LuaJIT 2.0" ]; then
|
||||
./configure --with-lua-include=/usr/local/include/luajit-2.0;
|
||||
else
|
||||
./configure;
|
||||
fi
|
||||
|
||||
make && sudo make install
|
||||
cd ..
|
Loading…
Reference in New Issue
Block a user