Update travis config to use hererocks (#105)
This commit is contained in:
parent
e5b4e1722f
commit
3366aae6f2
128
.travis.yml
128
.travis.yml
@ -1,106 +1,32 @@
|
|||||||
language: cpp
|
language: cpp
|
||||||
compiler: g++-5
|
|
||||||
dist: trusty
|
dist: trusty
|
||||||
|
osx_image: xcode8.3
|
||||||
sudo: required
|
sudo: required
|
||||||
|
|
||||||
matrix:
|
env:
|
||||||
include:
|
matrix:
|
||||||
- os: linux
|
- LUA="lua 5.1"
|
||||||
env: LUA=Lua5.1
|
- LUA="lua 5.2"
|
||||||
addons:
|
- LUA="lua 5.3"
|
||||||
apt:
|
- LUA="luajit 2.0"
|
||||||
sources:
|
|
||||||
- ubuntu-toolchain-r-test
|
|
||||||
packages:
|
|
||||||
- g++-5
|
|
||||||
- lua5.1
|
|
||||||
- liblua5.1-dev
|
|
||||||
install:
|
|
||||||
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-5 1
|
|
||||||
script:
|
|
||||||
- ci/test_all.sh -DLUA_INCLUDE_DIR="/usr/include/lua5.1" -DLUA_LIBRARY="/usr/lib/x86_64-linux-gnu/liblua5.1.so"
|
|
||||||
- os: linux
|
|
||||||
env: LUA=Lua5.2
|
|
||||||
addons:
|
|
||||||
apt:
|
|
||||||
sources:
|
|
||||||
- ubuntu-toolchain-r-test
|
|
||||||
packages:
|
|
||||||
- g++-5
|
|
||||||
- lua5.2
|
|
||||||
- liblua5.2-dev
|
|
||||||
install:
|
|
||||||
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-5 1
|
|
||||||
script:
|
|
||||||
- ci/test_all.sh -DLUA_INCLUDE_DIR="/usr/include/lua5.2" -DLUA_LIBRARY="/usr/lib/x86_64-linux-gnu/liblua5.2.so"
|
|
||||||
- os: linux
|
|
||||||
env: LUA=Lua5.3
|
|
||||||
addons:
|
|
||||||
apt:
|
|
||||||
sources:
|
|
||||||
- ubuntu-toolchain-r-test
|
|
||||||
packages:
|
|
||||||
- g++-5
|
|
||||||
before_install:
|
|
||||||
- pip install hererocks --user
|
|
||||||
- hererocks lua53 -l5.3 -rlatest
|
|
||||||
- source lua53/bin/activate
|
|
||||||
install:
|
|
||||||
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-5 1
|
|
||||||
script:
|
|
||||||
- ci/test_all.sh -DLUA_INCLUDE_DIR="$PWD/lua53/include"
|
|
||||||
- os: linux
|
|
||||||
env: LUA=LuaJIT
|
|
||||||
addons:
|
|
||||||
apt:
|
|
||||||
sources:
|
|
||||||
- ubuntu-toolchain-r-test
|
|
||||||
packages:
|
|
||||||
- g++-5
|
|
||||||
- luajit
|
|
||||||
- libluajit-5.1-dev
|
|
||||||
install:
|
|
||||||
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-5 1
|
|
||||||
script:
|
|
||||||
- LUA_BIN=luajit ci/test_all.sh -DLUA_INCLUDE_DIR="/usr/include/luajit-2.0" -DLUA_LIBRARY="/usr/lib/x86_64-linux-gnu/libluajit-5.1.so"
|
|
||||||
|
|
||||||
- os: osx
|
os:
|
||||||
env: LUA=Lua5.1
|
- linux
|
||||||
compiler: clang
|
- osx
|
||||||
osx_image: xcode8.3
|
|
||||||
before_install:
|
addons:
|
||||||
- brew update
|
apt:
|
||||||
install:
|
sources:
|
||||||
- brew install lua@5.1
|
- ubuntu-toolchain-r-test
|
||||||
script:
|
packages:
|
||||||
- LUA_BIN=lua5.1 ci/test_all.sh
|
- g++-5
|
||||||
- os: osx
|
|
||||||
env: LUA=Lua5.2
|
before_install:
|
||||||
compiler: clang
|
- if [[ $TRAVIS_OS_NAME == "linux" ]]; then export CXX=g++-5; sudo pip install hererocks; fi
|
||||||
osx_image: xcode8.3
|
- if [[ $TRAVIS_OS_NAME == "osx" ]]; then export CXX=clang++; brew update; brew upgrade python; sudo pip3 install hererocks; fi
|
||||||
before_install:
|
- hererocks lua-pkg --$LUA -rlatest
|
||||||
- brew update
|
- source lua-pkg/bin/activate
|
||||||
install:
|
|
||||||
- brew install lua@5.2
|
script:
|
||||||
script:
|
- ci/test_all.sh -DLUA_INCLUDE_DIR="$PWD/lua-pkg/include"
|
||||||
- ci/test_all.sh
|
|
||||||
- os: osx
|
|
||||||
env: LUA=Lua5.3
|
|
||||||
compiler: clang
|
|
||||||
osx_image: xcode8.3
|
|
||||||
before_install:
|
|
||||||
- brew update
|
|
||||||
install:
|
|
||||||
- brew install lua@5.3
|
|
||||||
script:
|
|
||||||
- LUA_BIN=lua5.3 ci/test_all.sh
|
|
||||||
- os: osx
|
|
||||||
env: LUA=LuaJIT
|
|
||||||
compiler: clang
|
|
||||||
osx_image: xcode8.3
|
|
||||||
before_install:
|
|
||||||
- brew update
|
|
||||||
install:
|
|
||||||
- brew install luajit
|
|
||||||
script:
|
|
||||||
- LUA_BIN=luajit ci/test_all.sh -DLUA_INCLUDE_DIR="/usr/local/Cellar/luajit/2.0.5/include/luajit-2.0" -DLUA_LIBRARY="/usr/local/Cellar/luajit/2.0.5/lib/libluajit.dylib"
|
|
||||||
|
|||||||
@ -31,7 +31,7 @@ if(APPLE)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
# libeffil not directly linked with liblua
|
# libeffil not directly linked with liblua
|
||||||
if (APPLE AND BUILD_ROCK)
|
if (APPLE)
|
||||||
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -undefined dynamic_lookup")
|
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -undefined dynamic_lookup")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,7 @@
|
|||||||
#!/usr/bin/env lua
|
#!/usr/bin/env lua
|
||||||
|
|
||||||
|
print("Using " .. _VERSION)
|
||||||
|
|
||||||
local scripts_path = arg[0]:gsub("[\\/]run_tests", "")
|
local scripts_path = arg[0]:gsub("[\\/]run_tests", "")
|
||||||
local src_path = scripts_path .. "/../.."
|
local src_path = scripts_path .. "/../.."
|
||||||
package.path = ";" .. scripts_path .. "/?.lua;"
|
package.path = ";" .. scripts_path .. "/?.lua;"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user