diff options
-rw-r--r-- | appveyor.yml | 63 |
1 files changed, 45 insertions, 18 deletions
diff --git a/appveyor.yml b/appveyor.yml index 479c4960..2117694c 100644 --- a/appveyor.yml +++ b/appveyor.yml | |||
@@ -10,54 +10,66 @@ environment: | |||
10 | 10 | ||
11 | matrix: | 11 | matrix: |
12 | # Lua 5.1 tests | 12 | # Lua 5.1 tests |
13 | - LUA: "lua 5.1" | 13 | - LUAV: "5.1" |
14 | LUAT: "lua" | ||
14 | COMPILER: "vs" | 15 | COMPILER: "vs" |
15 | FILES: "" | 16 | FILES: "" |
16 | EXCLUDE: "integration" | 17 | EXCLUDE: "integration" |
17 | - LUA: "lua 5.1" | 18 | - LUAV: "5.1" |
19 | LUAT: "lua" | ||
18 | COMPILER: "vs" | 20 | COMPILER: "vs" |
19 | FILES: "" | 21 | FILES: "" |
20 | EXCLUDE: "unit" | 22 | EXCLUDE: "unit" |
21 | - LUA: "lua 5.1" | 23 | - LUAV: "5.1" |
24 | LUAT: "lua" | ||
22 | COMPILER: "mingw" | 25 | COMPILER: "mingw" |
23 | FILES: "spec//build_spec.lua" | 26 | FILES: "spec//build_spec.lua" |
24 | EXCLUDE: "" | 27 | EXCLUDE: "" |
25 | # Lua 5.2 tests | 28 | # Lua 5.2 tests |
26 | - LUA: "lua 5.2" | 29 | - LUAV: "5.2" |
30 | LUAT: "lua" | ||
27 | COMPILER: "vs" | 31 | COMPILER: "vs" |
28 | FILES: "" | 32 | FILES: "" |
29 | EXCLUDE: "integration" | 33 | EXCLUDE: "integration" |
30 | - LUA: "lua 5.2" | 34 | - LUAV: "5.2" |
35 | LUAT: "lua" | ||
31 | COMPILER: "vs" | 36 | COMPILER: "vs" |
32 | FILES: "" | 37 | FILES: "" |
33 | EXCLUDE: "unit" | 38 | EXCLUDE: "unit" |
34 | - LUA: "lua 5.2" | 39 | - LUAV: "5.2" |
40 | LUAT: "lua" | ||
35 | COMPILER: "mingw" | 41 | COMPILER: "mingw" |
36 | FILES: "spec//build_spec.lua" | 42 | FILES: "spec//build_spec.lua" |
37 | EXCLUDE: "" | 43 | EXCLUDE: "" |
38 | # Lua 5.3 tests | 44 | # Lua 5.3 tests |
39 | - LUA: "lua 5.3" | 45 | - LUAV: "5.3" |
46 | LUAT: "lua" | ||
40 | COMPILER: "vs" | 47 | COMPILER: "vs" |
41 | FILES: "" | 48 | FILES: "" |
42 | EXCLUDE: "integration" | 49 | EXCLUDE: "integration" |
43 | - LUA: "lua 5.3" | 50 | - LUAV: "5.3" |
51 | LUAT: "lua" | ||
44 | COMPILER: "vs" | 52 | COMPILER: "vs" |
45 | FILES: "" | 53 | FILES: "" |
46 | EXCLUDE: "unit" | 54 | EXCLUDE: "unit" |
47 | - LUA: "lua 5.3" | 55 | - LUAV: "5.3" |
56 | LUAT: "lua" | ||
48 | COMPILER: "mingw" | 57 | COMPILER: "mingw" |
49 | FILES: "spec//build_spec.lua" | 58 | FILES: "spec//build_spec.lua" |
50 | EXCLUDE: "" | 59 | EXCLUDE: "" |
51 | # LuaJIT 2.1 tests | 60 | # LuaJIT 2.1 tests |
52 | - LUA: "luajit 2.1" | 61 | - LUAV: "2.1" |
62 | LUAT: "luajit" | ||
53 | COMPILER: "vs" | 63 | COMPILER: "vs" |
54 | FILES: "" | 64 | FILES: "" |
55 | EXCLUDE: "integration" | 65 | EXCLUDE: "integration" |
56 | - LUA: "luajit 2.1" | 66 | - LUAV: "2.1" |
67 | LUAT: "luajit" | ||
57 | COMPILER: "vs" | 68 | COMPILER: "vs" |
58 | FILES: "" | 69 | FILES: "" |
59 | EXCLUDE: "unit" | 70 | EXCLUDE: "unit" |
60 | - LUA: "luajit 2.1" | 71 | - LUAV: "2.1" |
72 | LUAT: "luajit" | ||
61 | COMPILER: "mingw" | 73 | COMPILER: "mingw" |
62 | FILES: "spec//build_spec.lua" | 74 | FILES: "spec//build_spec.lua" |
63 | EXCLUDE: "" | 75 | EXCLUDE: "" |
@@ -71,18 +83,33 @@ init: | |||
71 | 83 | ||
72 | before_build: | 84 | before_build: |
73 | - set PATH=C:\Python27\Scripts;%PATH% # Add directory containing 'pip' to PATH | 85 | - set PATH=C:\Python27\Scripts;%PATH% # Add directory containing 'pip' to PATH |
74 | - pip install hererocks | 86 | - IF NOT EXIST lua_install-%LUAV%\bin\activate.bat ( pip install hererocks ) |
75 | - hererocks lua_install --%LUA% --luarocks latest --target=%COMPILER% | 87 | - IF NOT EXIST lua_install-%LUAV%\bin\activate.bat ( hererocks lua_install-%LUAV% --%LUAT% %LUAV% --luarocks latest --target=%COMPILER% ) |
76 | - call lua_install\bin\activate | 88 | - call lua_install-%LUAV%\bin\activate |
77 | 89 | ||
78 | build_script: | 90 | build_script: |
79 | - luarocks install busted 1> NUL 2> NUL | 91 | - IF NOT EXIST lua_install-%LUAV%\bin\busted.bat ( luarocks install busted 1> NUL 2> NUL ) |
80 | - luarocks install cluacov 1> NUL 2> NUL | 92 | - IF NOT EXIST lua_install-%LUAV%\bin\luacov.bat ( luarocks install cluacov 1> NUL 2> NUL ) |
81 | 93 | ||
82 | test_script: | 94 | test_script: |
83 | - busted -o gtest -v --lpath=.//?.lua --exclude-tags=ssh,unix,%EXCLUDE% -Xhelper lua_dir=%CD%\lua_install,appveyor,%COMPILER% %FILES% | 95 | - busted -o gtest -v --lpath=.//?.lua --exclude-tags=ssh,unix,%EXCLUDE% -Xhelper lua_dir=%CD%\lua_install-%LUAV%,appveyor,%COMPILER% %FILES% |
84 | 96 | ||
85 | after_test: | 97 | after_test: |
86 | - pip install codecov | 98 | - pip install codecov |
87 | - luacov -c testrun/luacov.config | 99 | - luacov -c testrun/luacov.config |
88 | - cd testrun && codecov -f luacov.report.out -X gcov | 100 | - cd testrun && codecov -f luacov.report.out -X gcov |
101 | |||
102 | cache: | ||
103 | - lua_install-5.1 | ||
104 | - lua_install-5.2 | ||
105 | - lua_install-5.3 | ||
106 | - lua_install-2.1 | ||
107 | - testrun/testing_cache-5.1 | ||
108 | - testrun/testing_cache-5.2 | ||
109 | - testrun/testing_cache-5.3 | ||
110 | - testrun/testing_cache-2.1 | ||
111 | - testrun/testing_server-5.1 | ||
112 | - testrun/testing_server-5.2 | ||
113 | - testrun/testing_server-5.3 | ||
114 | - testrun/testing_server-2.1 | ||
115 | - testrun/binary-samples | ||