File tree 1 file changed +48
-0
lines changed
1 file changed +48
-0
lines changed Original file line number Diff line number Diff line change
1
+ language : c
2
+
3
+ os :
4
+ - linux
5
+ - osx
6
+
7
+ env :
8
+ global :
9
+ - LUA_PATH="./?.lua"
10
+ - LUA_CPATH="./?.so"
11
+ - LUAROCKS_ROOT="$TRAVIS_BUILD_DIR/install/luarocks"
12
+ - PATH="$PATH:$LUAROCKS_ROOT/bin"
13
+ matrix :
14
+ - LUAVM="puc"
15
+ - LUAVM="jit"
16
+
17
+ branches :
18
+ only :
19
+ - master
20
+
21
+ install :
22
+ - if [ "$LUAVM" = "puc" ]; then wget http://www.lua.org/ftp/lua-5.3.5.tar.gz ; fi
23
+ - if [ "$LUAVM" = "puc" ]; then tar -xzf lua-5.3.5.tar.gz ; fi
24
+ - if [ "$LUAVM" = "puc" ]; then cd lua-5.3.5 ; fi
25
+ - if [ "$LUAVM" = "puc" -a "$TRAVIS_OS_NAME" = "linux" ]; then make linux ; fi
26
+ - if [ "$LUAVM" = "puc" -a "$TRAVIS_OS_NAME" = "osx" ]; then make macosx ; fi
27
+ - if [ "$LUAVM" = "puc" ]; then sudo make install ; fi
28
+ - if [ "$LUAVM" = "puc" ]; then sudo make install ; fi
29
+ - if [ "$LUAVM" = "jit" ]; then wget http://luajit.org/download/LuaJIT-2.1.0-beta3.tar.gz ; fi
30
+ - if [ "$LUAVM" = "jit" ]; then tar -xzf LuaJIT-2.1.0-beta3.tar.gz ; fi
31
+ - if [ "$LUAVM" = "jit" ]; then cd LuaJIT-2.1.0-beta3 ; fi
32
+ - if [ "$LUAVM" = "jit" ]; then make ; fi
33
+ - if [ "$LUAVM" = "jit" ]; then sudo make install ; fi
34
+ - if [ "$LUAVM" = "jit" ]; then sudo ln -s "$(ls /usr/local/bin/luajit*|head -n 1)" /usr/local/bin/luajit ; fi
35
+ - cd ..
36
+ - wget https://luarocks.org/releases/luarocks-3.0.4.tar.gz
37
+ - tar zxpf luarocks-3.0.4.tar.gz
38
+ - cd luarocks-3.0.4
39
+ - ./configure --prefix="$LUAROCKS_ROOT"
40
+ - make build
41
+ - make install
42
+ - cd ..
43
+
44
+ script :
45
+ - luarocks make
46
+ - if [ "$LUAVM" = "puc" ]; then lua test.lua ; fi
47
+ - if [ "$LUAVM" = "jit" ]; then luajit test.lua ; fi
48
+
You can’t perform that action at this time.
0 commit comments