forked from bankiru/nginx-metrix
-
Notifications
You must be signed in to change notification settings - Fork 1
/
appveyor.yml
75 lines (60 loc) · 2.07 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
72
73
74
75
version: 1.1-dev-{build}
# Use default image unless needed
os:
- Windows Server 2012 R2
shallow_clone: true
environment:
LUAROCKS_VER: 2.3.0
matrix:
- LUA_VER: 5.1.5
# - LUA_VER: 5.2.4 # Lua 5.2.4 with compatibility flags enabled (DLUA_COMPAT_ALL).
# - LUA_VER: 5.2.4 # Lua 5.2.4 with compatibility flags disabled.
# NOCOMPAT: true
# - LUA_VER: 5.3.2 # Lua 5.3.2 with compatibility flags enabled (DLUA_COMPAT_5_2).
# - LUA_VER: 5.3.2 # Lua 5.3.2 with compatibility flags disabled.
# NOCOMPAT: true
- LJ_VER: 2.0.4
- LJ_VER: 2.1
#matrix:
# allow_failures:
# - configuration: MinGW
# platform: x64
# Abuse this section so we can have a matrix with different Compiler versions
# Is there a better way? Like injecting an array in the matrix?
#configuration:
# - 2015
# - MinGW
platform:
- x86
- x64
cache:
- c:\lua -> appveyor.yml
- c:\external -> appveyor.yml
# Skip unsupported combinations (ie, VS2008 for x64 is not supported)
init:
- if "%platform%" EQU "x64" ( for %%a in (2008 2010 MinGW) do ( if "%Configuration%"=="%%a" (echo "Skipping unsupported configuration" && exit /b 1 ) ) )
install:
# Make compiler command line tools available
- call .appveyor\set_compiler_env.bat
# Setup Lua development/build environment
- call .appveyor\install.bat
before_build:
- echo "Installing external deps"
build_script:
- luarocks make rockspecs/nginx-metrix-local-1.rockspec --local
before_test:
# install test only deps (if not already installed)
- luarocks show busted || luarocks install busted
- luarocks show luacov || luarocks install luacov
- luarocks show luacov-coveralls || luarocks install luacov-coveralls
- luarocks show luacheck || luarocks install luacheck
test_script:
- echo "Testing..."
- cd %APPVEYOR_BUILD_FOLDER%
- luacheck rockspecs/nginx-metrix-local-1.rockspec
- busted
after_test:
- if "%LUA_VER:~0,3%"=="5.1" (luarocks show bit32 || luarocks install bit32)
- luarocks show luacov-coveralls || luarocks install luacov-coveralls
- cd %APPVEYOR_BUILD_FOLDER%
- luacov-coveralls -v