-
Notifications
You must be signed in to change notification settings - Fork 187
/
appveyor.yml
71 lines (61 loc) · 1.61 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
image:
- Visual Studio 2015
- Visual Studio 2022
platform:
- x86
- x64
environment:
matrix:
- FROM_DEPS: true
# LuaRocks 3.x
- LUA_VER: 5.4.4
NOCOMPAT: true # with compatibility flags disabled.
LUAROCKS_VER: 3.8.0
- LJ_VER: 2.1
LUAROCKS_VER: 3.8.0
matrix:
fast_finish: true
exclude:
# Skip x86 for LuaRocks tests
- platform: x86
LUAROCKS_VER: 3.8.0
# Only test LuaRocks with latest MSVC
- image: Visual Studio 2015
LUAROCKS_VER: 3.8.0
cache:
- c:\lua -> appveyor.yml
- c:\external -> appveyor.yml
install:
- git submodule update --init
for:
-
# For testing building from git
matrix:
only:
- FROM_DEPS: true
build_script:
- msvcbuild.bat
- luajit.exe tests\run.lua
artifacts:
- path: luv.dll
- path: luajit.exe
-
# For testing LuaRocks
matrix:
except:
- FROM_DEPS: true
build_script:
- call .ci\set_compiler_env.bat
- call .ci\install.bat
- luarocks make
- luarocks show luv
- ps: if("$(Get-Location)" -eq $(lua -e "print(require'luv'.cwd())")) { "LuaRocks test OK" } else { "LuaRocks test failed"; exit 1 }
- lua tests\run.lua
- luarocks remove luv
# Test the alternate rockspec
- mkdir build\lib
- cp build.luarocks\deps\libuv\Release\libuv.lib build\lib\uv.lib
- cp -a deps\libuv\include build
- ps: luarocks make rockspecs\$(ls rockspecs) LIBUV_DIR=build LUA_COMPAT53_INCDIR=deps/lua-compat-5.3/c-api CFLAGS="/nologo /MT /O2"
- ps: if("$(Get-Location)" -eq $(lua -e "print(require'luv'.cwd())")) { "LuaRocks test OK" } else { "LuaRocks test failed"; exit 1 }
- luarocks remove luv