forked from luarocks/luarocks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
115 lines (105 loc) · 2.71 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
version: 3.0.0.{build}-test
shallow_clone: true
matrix:
fast_finish: true
environment:
LUAROCKS_VER: 3.0.0
matrix:
# Lua 5.1 tests
- LUAV: "5.1"
LUAT: "lua"
COMPILER: "vs"
FILES: ""
EXCLUDE: "integration"
- LUAV: "5.1"
LUAT: "lua"
COMPILER: "vs"
FILES: ""
EXCLUDE: "unit"
- LUAV: "5.1"
LUAT: "lua"
COMPILER: "mingw"
FILES: "spec//build_spec.lua"
EXCLUDE: ""
# Lua 5.2 tests
- LUAV: "5.2"
LUAT: "lua"
COMPILER: "vs"
FILES: ""
EXCLUDE: "integration"
- LUAV: "5.2"
LUAT: "lua"
COMPILER: "vs"
FILES: ""
EXCLUDE: "unit"
- LUAV: "5.2"
LUAT: "lua"
COMPILER: "mingw"
FILES: "spec//build_spec.lua"
EXCLUDE: ""
# Lua 5.3 tests
- LUAV: "5.3"
LUAT: "lua"
COMPILER: "vs"
FILES: ""
EXCLUDE: "integration"
- LUAV: "5.3"
LUAT: "lua"
COMPILER: "vs"
FILES: ""
EXCLUDE: "unit"
- LUAV: "5.3"
LUAT: "lua"
COMPILER: "mingw"
FILES: "spec//build_spec.lua"
EXCLUDE: ""
# LuaJIT 2.1 tests
- LUAV: "2.1"
LUAT: "luajit"
COMPILER: "vs"
FILES: ""
EXCLUDE: "integration"
- LUAV: "2.1"
LUAT: "luajit"
COMPILER: "vs"
FILES: ""
EXCLUDE: "unit"
- LUAV: "2.1"
LUAT: "luajit"
COMPILER: "mingw"
FILES: "spec//build_spec.lua"
EXCLUDE: ""
init:
# Setup Lua development/build environment
# Make VS 2015 command line tools available
- call "%ProgramFiles(x86)%\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" %platform%
# Add MinGW compiler to the path
- set PATH=C:\MinGW\bin;%PATH%
before_build:
- set PATH=C:\Python27\Scripts;%PATH% # Add directory containing 'pip' to PATH
- IF NOT EXIST lua_install-%LUAV%\bin\activate.bat ( pip install hererocks )
- IF NOT EXIST lua_install-%LUAV%\bin\activate.bat ( hererocks lua_install-%LUAV% --%LUAT% %LUAV% --luarocks latest --target=%COMPILER% )
- call lua_install-%LUAV%\bin\activate
build_script:
- IF NOT EXIST lua_install-%LUAV%\bin\busted.bat ( luarocks install busted 1> NUL 2> NUL )
- IF NOT EXIST lua_install-%LUAV%\bin\luacov.bat ( luarocks install cluacov 1> NUL 2> NUL )
test_script:
- busted -o gtest -v --lpath=.//?.lua --exclude-tags=ssh,unix,%EXCLUDE% -Xhelper lua_dir=%CD%\lua_install-%LUAV%,appveyor,%COMPILER% %FILES%
after_test:
- pip install codecov
- luacov -c testrun/luacov.config
- cd testrun && codecov -f luacov.report.out -X gcov
cache:
- lua_install-5.1
- lua_install-5.2
- lua_install-5.3
- lua_install-2.1
- testrun/testing_cache-5.1
- testrun/testing_cache-5.2
- testrun/testing_cache-5.3
- testrun/testing_cache-2.1
- testrun/testing_server-5.1
- testrun/testing_server-5.2
- testrun/testing_server-5.3
- testrun/testing_server-2.1
- testrun/binary-samples