diff options
| author | George Roman <george.roman.99@gmail.com> | 2018-06-07 22:52:27 +0300 |
|---|---|---|
| committer | Hisham Muhammad <hisham@gobolinux.org> | 2018-06-07 19:32:57 -0300 |
| commit | 98ad23150bef38d2f865707d0eac980f9425490f (patch) | |
| tree | 669c0037c2259f52a7283e5e2fce7ed8d3a0e25a | |
| parent | cb33601267b32328f90660e15c648467fee0e6e8 (diff) | |
| download | luarocks-98ad23150bef38d2f865707d0eac980f9425490f.tar.gz luarocks-98ad23150bef38d2f865707d0eac980f9425490f.tar.bz2 luarocks-98ad23150bef38d2f865707d0eac980f9425490f.zip | |
Run unit and integration tests as separate jobs on Appveyor
| -rw-r--r-- | appveyor.yml | 49 |
1 files 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 | |||
| 2 | 2 | ||
| 3 | shallow_clone: true | 3 | shallow_clone: true |
| 4 | 4 | ||
| 5 | matrix: | ||
| 6 | fast_finish: true | ||
| 7 | |||
| 5 | environment: | 8 | environment: |
| 6 | LUAROCKS_VER: 3.0.0 | 9 | LUAROCKS_VER: 3.0.0 |
| 7 | 10 | ||
| 8 | matrix: | 11 | matrix: |
| 12 | # Unit tests | ||
| 9 | - LUA: "lua 5.1" | 13 | - LUA: "lua 5.1" |
| 10 | COMPILER: "vs" | 14 | COMPILER: "vs" |
| 11 | FILES: "" | 15 | FILES: "" |
| 12 | - LUA: "lua 5.1" | 16 | EXCLUDE: "integration" |
| 13 | COMPILER: "mingw" | ||
| 14 | FILES: "spec//build_spec.lua" | ||
| 15 | - LUA: "lua 5.2" | 17 | - LUA: "lua 5.2" |
| 16 | COMPILER: "vs" | 18 | COMPILER: "vs" |
| 17 | FILES: "" | 19 | FILES: "" |
| 18 | - LUA: "lua 5.2" | 20 | EXCLUDE: "integration" |
| 19 | COMPILER: "mingw" | ||
| 20 | FILES: "spec//build_spec.lua" | ||
| 21 | - LUA: "lua 5.3" | 21 | - LUA: "lua 5.3" |
| 22 | COMPILER: "vs" | 22 | COMPILER: "vs" |
| 23 | FILES: "" | 23 | FILES: "" |
| 24 | EXCLUDE: "integration" | ||
| 25 | - LUA: "luajit 2.1" | ||
| 26 | COMPILER: "vs" | ||
| 27 | FILES: "" | ||
| 28 | EXCLUDE: "integration" | ||
| 29 | # Integration tests | ||
| 30 | - LUA: "lua 5.1" | ||
| 31 | COMPILER: "vs" | ||
| 32 | FILES: "" | ||
| 33 | EXCLUDE: "unit" | ||
| 34 | - LUA: "lua 5.2" | ||
| 35 | COMPILER: "vs" | ||
| 36 | FILES: "" | ||
| 37 | EXCLUDE: "unit" | ||
| 24 | - LUA: "lua 5.3" | 38 | - LUA: "lua 5.3" |
| 25 | COMPILER: "mingw" | 39 | COMPILER: "vs" |
| 26 | FILES: "spec//build_spec.lua" | 40 | FILES: "" |
| 41 | EXCLUDE: "unit" | ||
| 27 | - LUA: "luajit 2.1" | 42 | - LUA: "luajit 2.1" |
| 28 | COMPILER: "vs" | 43 | COMPILER: "vs" |
| 29 | FILES: "" | 44 | FILES: "" |
| 45 | EXCLUDE: "unit" | ||
| 46 | # Build tests with MinGW | ||
| 47 | - LUA: "lua 5.1" | ||
| 48 | COMPILER: "mingw" | ||
| 49 | FILES: "spec//build_spec.lua" | ||
| 50 | EXCLUDE: "" | ||
| 51 | - LUA: "lua 5.2" | ||
| 52 | COMPILER: "mingw" | ||
| 53 | FILES: "spec//build_spec.lua" | ||
| 54 | EXCLUDE: "" | ||
| 55 | - LUA: "lua 5.3" | ||
| 56 | COMPILER: "mingw" | ||
| 57 | FILES: "spec//build_spec.lua" | ||
| 58 | EXCLUDE: "" | ||
| 30 | - LUA: "luajit 2.1" | 59 | - LUA: "luajit 2.1" |
| 31 | COMPILER: "mingw" | 60 | COMPILER: "mingw" |
| 32 | FILES: "spec//build_spec.lua" | 61 | FILES: "spec//build_spec.lua" |
| 62 | EXCLUDE: "" | ||
| 33 | 63 | ||
| 34 | init: | 64 | init: |
| 35 | # Setup Lua development/build environment | 65 | # Setup Lua development/build environment |
| @@ -49,8 +79,7 @@ build_script: | |||
| 49 | - luarocks install cluacov 1> NUL 2> NUL | 79 | - luarocks install cluacov 1> NUL 2> NUL |
| 50 | 80 | ||
| 51 | test_script: | 81 | test_script: |
| 52 | - busted -o gtest -v --lpath=.//?.lua --exclude-tags=ssh,unix,integration -Xhelper lua_dir=%CD%\lua_install,appveyor,%COMPILER% %FILES% | 82 | - busted -o gtest -v --lpath=.//?.lua --exclude-tags=ssh,unix,%EXCLUDE% -Xhelper lua_dir=%CD%\lua_install,appveyor,%COMPILER% %FILES% |
| 53 | - busted -o gtest -v --lpath=.//?.lua --exclude-tags=ssh,unix,unit -Xhelper lua_dir=%CD%\lua_install,appveyor,%COMPILER% %FILES% | ||
| 54 | 83 | ||
| 55 | after_test: | 84 | after_test: |
| 56 | - pip install codecov | 85 | - pip install codecov |
