diff options
Diffstat (limited to 'appveyor.yml')
-rw-r--r-- | appveyor.yml | 49 |
1 files changed, 37 insertions, 12 deletions
diff --git a/appveyor.yml b/appveyor.yml index d95ea952..32dc3e14 100644 --- a/appveyor.yml +++ b/appveyor.yml | |||
@@ -6,25 +6,50 @@ environment: | |||
6 | LUAROCKS_VER: 3.0.0 | 6 | LUAROCKS_VER: 3.0.0 |
7 | 7 | ||
8 | matrix: | 8 | matrix: |
9 | - LUA_VER: 5.1.5 | 9 | - LUA: "lua 5.1" |
10 | - LUA_VER: 5.2.4 | 10 | COMPILER: "vs" |
11 | - LUA_VER: 5.3.1 | 11 | - LUA: "lua 5.1" |
12 | - LJ_VER: 2.0.4 | 12 | COMPILER: "mingw" |
13 | - LJ_VER: 2.1 | 13 | - LUA: "lua 5.2" |
14 | COMPILER: "vs" | ||
15 | - LUA: "lua 5.2" | ||
16 | COMPILER: "mingw" | ||
17 | - LUA: "lua 5.3" | ||
18 | COMPILER: "vs" | ||
19 | - LUA: "lua 5.3" | ||
20 | COMPILER: "mingw" | ||
21 | - LUA: "luajit 2.0" | ||
22 | COMPILER: "vs" | ||
23 | - LUA: "luajit 2.0" | ||
24 | COMPILER: "mingw" | ||
25 | - LUA: "luajit 2.1" | ||
26 | COMPILER: "vs" | ||
27 | - LUA: "luajit 2.1" | ||
28 | COMPILER: "mingw" | ||
29 | |||
14 | 30 | ||
15 | init: | 31 | init: |
16 | # Setup Lua development/build environment | 32 | # Setup Lua development/build environment |
17 | # Make VS 2015 command line tools available | 33 | # Make VS 2015 command line tools available |
18 | - call "%ProgramFiles(x86)%\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" %platform% | 34 | - call "%ProgramFiles(x86)%\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" %platform% |
35 | # Add MinGW compiler to the path | ||
36 | - set PATH=C:\MinGW\bin;%PATH% | ||
19 | 37 | ||
20 | install: | 38 | before_build: |
21 | # Setup Lua development/build environment | 39 | - set PATH=C:\Python27\Scripts;%PATH% # Add directory containing 'pip' to PATH |
22 | - call .appveyor\install.bat | 40 | - pip install hererocks |
41 | - hererocks env --%LUA% -rlatest --target=%COMPILER% | ||
42 | - call env\bin\activate | ||
23 | 43 | ||
24 | build_script: | 44 | build_script: |
25 | - call .appveyor\build.bat | 45 | - luarocks install busted 1> NUL 2> NUL |
26 | 46 | ||
27 | test_script: | 47 | test_script: |
28 | - echo "Testing..." | 48 | - busted --lpath=.//?.lua --exclude-tags=ssh,unix,mock -Xhelper appveyor,%COMPILER% |
29 | - cd test | 49 | |
30 | - call testing.bat | 50 | after_test: |
51 | - if "%LUA%"=="lua 5.1" (luarocks show bit32 || luarocks install bit32) | ||
52 | - luarocks install luacov | ||
53 | - pip install codecov | ||
54 | - luacov -c test/luacov.config | ||
55 | - cd test && codecov \ No newline at end of file | ||