Replace appveyor.yml with .travis.yml
Also fix issue with LuaJIT 2.1 on Python 3
This commit is contained in:
parent
dea278fe72
commit
975d41ec56
24
.travis.yml
Normal file
24
.travis.yml
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
language: c
|
||||||
|
sudo: false
|
||||||
|
|
||||||
|
cache:
|
||||||
|
directories: cache
|
||||||
|
|
||||||
|
matrix:
|
||||||
|
include:
|
||||||
|
- compiler: ": Lua 5.1"
|
||||||
|
env: LUA="lua 5.1"
|
||||||
|
- compiler: ": Lua 5.2"
|
||||||
|
env: LUA="lua 5.2"
|
||||||
|
- compiler: ": Lua 5.3"
|
||||||
|
env: LUA="lua 5.3"
|
||||||
|
- compiler: ": LuaJIT 2.0"
|
||||||
|
env: LUA="luajit 2.0"
|
||||||
|
- compiler: ": LuaJIT 2.1"
|
||||||
|
env: LUA="luajit 2.1"
|
||||||
|
|
||||||
|
script:
|
||||||
|
- python hererocks.py here --$LUA -r^ --downloads cache --builds cache
|
||||||
|
- export PATH=$PATH:$PWD/here/bin
|
||||||
|
- lua -v
|
||||||
|
- luarocks --version
|
||||||
21
appveyor.yml
21
appveyor.yml
@ -1,21 +0,0 @@
|
|||||||
version: 1.0.{build}
|
|
||||||
|
|
||||||
shallow_clone: true
|
|
||||||
|
|
||||||
environment:
|
|
||||||
matrix:
|
|
||||||
- LUA: 5.1
|
|
||||||
- LUA: 5.2
|
|
||||||
- LUA: 5.3
|
|
||||||
|
|
||||||
configuration: MinGW
|
|
||||||
|
|
||||||
platform: x86
|
|
||||||
|
|
||||||
install: cinst python
|
|
||||||
|
|
||||||
before_build: set PATH=C:\mingw\bin;%PATH%
|
|
||||||
|
|
||||||
build_script: python hererocks.py here --lua "%LUA%" --verbose
|
|
||||||
|
|
||||||
test_script: here\bin\lua -v
|
|
||||||
@ -200,7 +200,7 @@ def fetch(versions, version, temp_dir, targz=True):
|
|||||||
if clone_command == "git clone" and ref != "master":
|
if clone_command == "git clone" and ref != "master":
|
||||||
run_command("git checkout", quote(ref))
|
run_command("git checkout", quote(ref))
|
||||||
|
|
||||||
commit = exec_command(True, "git rev-parse HEAD").strip()
|
commit = exec_command(True, "git rev-parse HEAD").strip().decode("utf-8")
|
||||||
return result_dir, [name, "git", url_to_name(repo), url_to_name(commit)]
|
return result_dir, [name, "git", url_to_name(repo), url_to_name(commit)]
|
||||||
|
|
||||||
lua_version_regexp = re.compile("^\\s*#define\\s+LUA_VERSION_NUM\\s+50(\d)\\s*$")
|
lua_version_regexp = re.compile("^\\s*#define\\s+LUA_VERSION_NUM\\s+50(\d)\\s*$")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user