aboutsummaryrefslogtreecommitdiff
path: root/appveyor.yml
diff options
context:
space:
mode:
Diffstat (limited to 'appveyor.yml')
-rw-r--r--appveyor.yml78
1 files changed, 78 insertions, 0 deletions
diff --git a/appveyor.yml b/appveyor.yml
new file mode 100644
index 0000000..db2206e
--- /dev/null
+++ b/appveyor.yml
@@ -0,0 +1,78 @@
1version: 0.3.2.{build}
2
3os:
4- Windows Server 2012 R2
5
6shallow_clone: true
7
8environment:
9 LR_EXTERNAL: c:\external
10
11 matrix:
12 - LUA: "lua 5.1"
13 - LUA: "lua 5.2"
14 - LUA: "lua 5.3"
15
16platform:
17 - x64
18 - x86
19 # - mingw
20
21cache:
22 - c:\hererocks -> appveyor.yml
23 - c:\external -> appveyor.yml
24
25install:
26 - echo "Setup..."
27 - set PATH=C:\Python27\Scripts;%LR_EXTERNAL%;%PATH%
28 - if /I "%platform%"=="x86" set HR_TARGET=vs_32
29 - if /I "%platform%"=="x64" set HR_TARGET=vs_64
30 - if /I "%platform%"=="mingw" set HR_TARGET=mingw
31 - if /I "%platform%"=="mingw" set PATH=C:\MinGW\bin;%PATH%
32 - if not exist "%LR_EXTERNAL%" (
33 mkdir "%LR_EXTERNAL%" &&
34 mkdir "%LR_EXTERNAL%\lib" &&
35 mkdir "%LR_EXTERNAL%\include"
36 )
37 - if not exist c:\hererocks (
38 pip install hererocks &&
39 hererocks c:\hererocks --%LUA% --target %HR_TARGET% -rlatest
40 )
41 - call c:\hererocks\bin\activate
42
43before_build:
44 # external deps
45
46build_script:
47 - echo "Making..."
48 - luarocks make rockspecs/lua-llthreads2-compat-scm-0.rockspec
49 - luarocks make rockspecs/lua-llthreads2-scm-0.rockspec
50
51before_test:
52 # test deps
53
54test_script:
55 - echo "Testing..."
56 - cd %APPVEYOR_BUILD_FOLDER%\test
57 - lua test_version.lua
58 - lua test_table_copy.lua
59 - lua test_threads.lua 10
60 - lua test_llthreads.lua
61 - lua test_join_timeout.lua
62 - lua test_join_detach.lua
63 - lua test_join_error.lua
64 - lua test_register_ffi.lua
65 - lua test_logger.lua
66 - lua test_pass_cfunction.lua
67 - lua test_load_llthreads2.lua
68 - lua test_alive.lua
69 - lua test_threads_ex.lua 10
70 - lua test_threads_ex_arg.lua
71 - lua test_threads_ex_opt.lua
72 - lua test_threads_ex_opt_2.lua
73 - lua test_threads_attr.lua
74 - lua test_integer.lua
75 # - lua test_register_llthreads.lua
76
77after_test:
78 # deploy