mirror of
https://github.com/TangentFoxy/argparse.git
synced 2025-07-28 02:52:20 +00:00
Update travis config
This commit is contained in:
21
.travis.yml
21
.travis.yml
@@ -1,17 +1,22 @@
|
|||||||
language: c
|
language: python
|
||||||
|
sudo: false
|
||||||
|
|
||||||
env:
|
env:
|
||||||
- LUA="Lua 5.1"
|
- LUA="lua 5.1"
|
||||||
- LUA="Lua 5.2"
|
- LUA="lua 5.2"
|
||||||
- LUA="Lua 5.3"
|
- LUA="lua 5.3"
|
||||||
- LUA="LuaJIT 2.0"
|
- LUA="luajit 2.0"
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- bash .travis_setup.sh
|
- pip install hererocks
|
||||||
- bash .travis_setup_rocks.sh
|
- hererocks lua -r^ --$LUA
|
||||||
|
- export PATH=$PATH:$PWD/lua/bin
|
||||||
|
- luarocks install luacheck
|
||||||
|
- luarocks install dkjson --deps-mode=none
|
||||||
|
- luarocks install busted
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- sudo luarocks make
|
- luarocks make
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- busted
|
- busted
|
||||||
|
@@ -1,36 +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
|
|
||||||
|
|
||||||
if [ "$LUA" == "LuaJIT 2.0" ]; then
|
|
||||||
wget -O - http://luajit.org/download/LuaJIT-2.0.4.tar.gz | tar xz
|
|
||||||
cd LuaJIT-2.0.4
|
|
||||||
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
|
|
||||||
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 ..
|
|
@@ -1,15 +0,0 @@
|
|||||||
# A script for setting up Lua rocks for travis-ci testing.
|
|
||||||
|
|
||||||
sudo luarocks install dkjson --deps-mode=none
|
|
||||||
|
|
||||||
mkdir busted
|
|
||||||
wget -O - https://api.github.com/repos/Olivine-Labs/busted/tarball/master | tar xz -C busted --strip-components=1
|
|
||||||
cd busted
|
|
||||||
sudo luarocks make busted-scm-0.rockspec
|
|
||||||
cd ..
|
|
||||||
|
|
||||||
mkdir luacheck
|
|
||||||
wget -O - https://api.github.com/repos/mpeterv/luacheck/tarball/master | tar xz -C luacheck --strip-components=1
|
|
||||||
cd luacheck
|
|
||||||
sudo luarocks make
|
|
||||||
cd ..
|
|
Reference in New Issue
Block a user