From 98ad23150bef38d2f865707d0eac980f9425490f Mon Sep 17 00:00:00 2001 From: George Roman Date: Thu, 7 Jun 2018 22:52:27 +0300 Subject: Run unit and integration tests as separate jobs on Appveyor --- appveyor.yml | 49 +++++++++++++++++++++++++++++++++++++++---------- 1 file changed, 39 insertions(+), 10 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index a4a47f54..5d4e1a7b 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -2,34 +2,64 @@ version: 3.0.0.{build}-test shallow_clone: true +matrix: + fast_finish: true + environment: LUAROCKS_VER: 3.0.0 matrix: + # Unit tests - LUA: "lua 5.1" COMPILER: "vs" FILES: "" - - LUA: "lua 5.1" - COMPILER: "mingw" - FILES: "spec//build_spec.lua" + EXCLUDE: "integration" - LUA: "lua 5.2" COMPILER: "vs" FILES: "" - - LUA: "lua 5.2" - COMPILER: "mingw" - FILES: "spec//build_spec.lua" + EXCLUDE: "integration" - LUA: "lua 5.3" COMPILER: "vs" FILES: "" + EXCLUDE: "integration" + - LUA: "luajit 2.1" + COMPILER: "vs" + FILES: "" + EXCLUDE: "integration" + # Integration tests + - LUA: "lua 5.1" + COMPILER: "vs" + FILES: "" + EXCLUDE: "unit" + - LUA: "lua 5.2" + COMPILER: "vs" + FILES: "" + EXCLUDE: "unit" - LUA: "lua 5.3" - COMPILER: "mingw" - FILES: "spec//build_spec.lua" + COMPILER: "vs" + FILES: "" + EXCLUDE: "unit" - LUA: "luajit 2.1" COMPILER: "vs" FILES: "" + EXCLUDE: "unit" + # Build tests with MinGW + - LUA: "lua 5.1" + COMPILER: "mingw" + FILES: "spec//build_spec.lua" + EXCLUDE: "" + - LUA: "lua 5.2" + COMPILER: "mingw" + FILES: "spec//build_spec.lua" + EXCLUDE: "" + - LUA: "lua 5.3" + COMPILER: "mingw" + FILES: "spec//build_spec.lua" + EXCLUDE: "" - LUA: "luajit 2.1" COMPILER: "mingw" FILES: "spec//build_spec.lua" + EXCLUDE: "" init: # Setup Lua development/build environment @@ -49,8 +79,7 @@ build_script: - luarocks install cluacov 1> NUL 2> NUL test_script: - - busted -o gtest -v --lpath=.//?.lua --exclude-tags=ssh,unix,integration -Xhelper lua_dir=%CD%\lua_install,appveyor,%COMPILER% %FILES% - - busted -o gtest -v --lpath=.//?.lua --exclude-tags=ssh,unix,unit -Xhelper lua_dir=%CD%\lua_install,appveyor,%COMPILER% %FILES% + - busted -o gtest -v --lpath=.//?.lua --exclude-tags=ssh,unix,%EXCLUDE% -Xhelper lua_dir=%CD%\lua_install,appveyor,%COMPILER% %FILES% after_test: - pip install codecov -- cgit v1.2.3-55-g6feb