updates travis

This commit is contained in:
kikito 2016-07-02 18:03:28 +02:00
parent 7fc429b519
commit 1f6eba9a7b

View File

@ -1,36 +1,34 @@
language: erlang language: python
sudo: false
env: env:
global: - LUA="lua=5.1"
- LUAROCKS_BASE=luarocks-2.1.0 - LUA="lua=5.2"
matrix: - LUA="lua=5.3"
- LUA=lua5.1 LUA_DEV=liblua5.1-dev LUA_VER=5.1 LUA_SFX=5.1 LUA_INCDIR=/usr/include/lua5.1 - LUA="luajit=2.0"
- LUA=lua5.2 LUA_DEV=liblua5.2-dev LUA_VER=5.2 LUA_SFX=5.2 LUA_INCDIR=/usr/include/lua5.2 - LUA="luajit=2.1"
- LUA=luajit LUA_DEV=libluajit-5.1-dev LUA_VER=5.1 LUA_SFX=jit LUA_INCDIR=/usr/include/luajit-2.0
before_install: before_install:
- if [ $LUA = "luajit" ]; then - pip install hererocks
sudo add-apt-repository ppa:mwild1/ppa -y && sudo apt-get update -y; - hererocks lua_install -r^ --$LUA
fi - export PATH=$PATH:$PWD/lua_install/bin # Add directory with all installed binaries to PATH
- sudo apt-get install $LUA
- sudo apt-get install $LUA_DEV
- lua$LUA_SFX -v
# Install a recent luarocks release
- wget http://luarocks.org/releases/$LUAROCKS_BASE.tar.gz
- tar zxvpf $LUAROCKS_BASE.tar.gz
- cd $LUAROCKS_BASE
- ./configure
--lua-version=$LUA_VER --lua-suffix=$LUA_SFX --with-lua-include="$LUA_INCDIR"
- sudo make
- sudo make install
- cd $TRAVIS_BUILD_DIR
install: install:
- sudo -E luarocks install lua_cliargs 2.3-3 - luarocks install luacheck
- sudo -E luarocks install busted 1.11.1-1 - luarocks install busted
- luarocks install luacov
- luarocks install luacov-coveralls
script: script:
- sudo -E busted -v - luacheck --no-unused-args --std max+busted *.lua spec
- busted --verbose --coverage
after_success:
- luacov-coveralls --exclude $TRAVIS_BUILD_DIR/lua_install
branches:
except:
- gh-pages
notifications: notifications:
email: email: