aboutsummaryrefslogtreecommitdiff
path: root/appveyor.yml
blob: 92fc1d640e0361d1cf4fcd88f659c770c0e1338e (plain)
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
version: 2.4.1.{build}-test

shallow_clone: true

environment:
  LUAROCKS_VER: 2.4.1

  matrix:
  - LUA: "lua 5.1"
    COMPILER: "vs"
  - LUA: "lua 5.1"
    COMPILER: "mingw"
  - LUA: "lua 5.2"
    COMPILER: "vs"
  - LUA: "lua 5.2"
    COMPILER: "mingw"
  - LUA: "lua 5.3"
    COMPILER: "vs"
  - LUA: "lua 5.3"
    COMPILER: "mingw"
  - LUA: "luajit 2.0"
    COMPILER: "vs"
  - LUA: "luajit 2.0"
    COMPILER: "mingw"
  - LUA: "luajit 2.1"
    COMPILER: "vs"
  - LUA: "luajit 2.1"
    COMPILER: "mingw"


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
  - pip install hererocks
  - hererocks env --%LUA% -rlatest --target=%COMPILER%
  - call env\bin\activate

build_script:
  - luarocks install busted 1> NUL 2> NUL

test_script:
  - busted --lpath=.//?.lua --exclude-tags=ssh,unix,mock -Xhelper appveyor,%COMPILER%

after_test:
  - if "%LUA%"=="lua 5.1" (luarocks show bit32 || luarocks install bit32)
  - luarocks install luacov
  - pip install codecov
  - luacov -c test/luacov.config
  - cd test && codecov