File tree Expand file tree Collapse file tree 2 files changed +66
-9
lines changed Expand file tree Collapse file tree 2 files changed +66
-9
lines changed Original file line number Diff line number Diff line change 1- language : erlang
2- otp_release :
3- - R15B02
1+ language : c
42
53env :
6- - LUA=""
7- - LUA="luajit"
4+ - LUA='Lua 5.1'
5+ - LUA='Lua 5.2'
6+ - LUA='Lua 5.3'
7+ - LUA='LuaJIT 2.0'
88
99branches :
1010 only :
1111 - master
1212
13+ before_install :
14+ - bash .travis_setup.sh
15+
1316install :
14- - sudo apt-get install luajit
15- - sudo apt-get install luarocks
16- - sudo luarocks install busted 2.0rc10-1
17+ - sudo apt-get update -qq
18+ - sudo luarocks install luasec
19+ - sudo luarocks install luacheck
20+ - sudo luarocks install busted
1721 - sudo luarocks install dkjson
1822 - sudo luarocks install yaml
1923 - sudo luarocks install inifile
2024
21- script : " busted spec"
25+ script :
26+ - luacheck .
27+ - busted spec
28+
29+ notifications :
30+ email :
31+ on_success : change
32+ on_failure : always
Original file line number Diff line number Diff line change 1+ # A script for setting up environment for travis-ci testing.
2+ # Sets up Lua and Luarocks.
3+ # LUA must be "Lua 5.1", "Lua 5.2", "Lua 5.3" or "LuaJIT 2.0".
4+ #
5+ # Shamelessly adapted from [busted](https://github.com/Olivine-Labs/busted).
6+
7+ set -e
8+
9+ echo ' rocks_servers = {
10+ "http://rocks.moonscript.org/",
11+ "http://luarocks.org/repositories/rocks",
12+ "http://luarocks.logiceditor.com/rocks",
13+ "http://liblua.so/luarocks/repositories/rocks"
14+ }' >> ~ /config.lua
15+
16+
17+ if [ " $LUA " == " LuaJIT 2.0" ]; then
18+ wget -O - http://luajit.org/download/LuaJIT-2.0.4.tar.gz | tar xz
19+ cd LuaJIT-2.0.4
20+ make && sudo make install INSTALL_TSYMNAME=lua;
21+ else
22+ if [ " $LUA " == " Lua 5.1" ]; then
23+ wget -O - http://www.lua.org/ftp/lua-5.1.5.tar.gz | tar xz
24+ cd lua-5.1.5;
25+ elif [ " $LUA " == " Lua 5.2" ]; then
26+ wget -O - http://www.lua.org/ftp/lua-5.2.4.tar.gz | tar xz
27+ cd lua-5.2.4;
28+ elif [ " $LUA " == " Lua 5.3" ]; then
29+ wget -O - http://www.lua.org/ftp/lua-5.3.0.tar.gz | tar xz
30+ cd lua-5.3.0;
31+ fi
32+ sudo make linux install;
33+ fi
34+
35+ cd ..
36+ 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
37+ cd luarocks-2.2.2
38+
39+ if [ " $LUA " == " LuaJIT 2.0" ]; then
40+ ./configure --with-lua-include=/usr/local/include/luajit-2.0;
41+ else
42+ ./configure;
43+ fi
44+
45+ make build && sudo make install
46+ cd ..
You can’t perform that action at this time.
0 commit comments