-
Notifications
You must be signed in to change notification settings - Fork 7
/
appveyor.yml
104 lines (90 loc) · 3.09 KB
/
appveyor.yml
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
version: 1.0.{build}
#
# Skipping commits affecting these files.
#
skip_commits:
files:
- '**/*.md'
- '**/*.png'
- '**/*.jpg'
environment:
# global:
# CL: -nologo -MP
matrix:
- BUILDER: msvc
CPU: x86
- BUILDER: msvc
CPU: x64
- BUILDER: mingw
CPU: x86
- BUILDER: mingw
CPU: x64
- BUILDER: cygwin
CPU: x86
- BUILDER: cygwin
CPU: x64
matrix:
#
# Immediately finish build if one of the above jobs fails.
#
fast_finish: true
allow_failures:
- BUILDER: cygwin
install:
#
# Cygwin install options etc.
#
- cmd: set DISABLEDELAYEDEXPANSION=0
- cmd: set CYGWIN_OPT=-qgnNdOA -l c:\cygwin\var\cache\setup -R c:\cygwin -s http://cygwin.mirror.constant.com
#
# Set compiler environment for MSVC first.
#
- cmd: if %BUILDER%. == msvc. call "c:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" %CPU%
- cmd: if %BUILDER%-%CPU%. == mingw-x86. set PATH=c:\msys64\MinGW32\bin;c:\msys64\usr\bin;%PATH%
- cmd: if %BUILDER%-%CPU%. == mingw-x64. set PATH=c:\msys64\MinGW64\bin;c:\msys64\usr\bin;%PATH%
- cmd: if %BUILDER%-%CPU%. == cygwin-x86. c:\cygwin\setup-x86.exe %CYGWIN_OPT% > NUL & set PATH=c:\cygwin\bin;c:\msys64\usr\bin;%PATH%
- cmd: if %BUILDER%-%CPU%. == cygwin-x64. set PATH=c:\msys64\usr\bin;%PATH%
build_script:
- cmd: CI\appveyor-script.bat init
- cmd: cd src
- cmd: set USE_LUAJIT=1
- cmd: set PLATFORM=%CPU%
- cmd: set CYGWIN=nodosfilewarning
- cmd: if %BUILDER%. == msvc. nmake -nologo -f Makefile.vc6
- cmd: if %BUILDER%. == mingw. make -f Makefile.MinGW CPU=%CPU%
- cmd: if %BUILDER%. == cygwin. make -f Makefile.CygWin CPU=%CPU% USE_LUAJIT=0
test_script:
- cmd: if %BUILDER%. == cygwin. (set USE_LUAJIT=0) else (set USE_LUAJIT=1)
- cmd: set WSOCK_TRACE_LEVEL=1 & ws_tool.exe test -v
- cmd: set WSOCK_TRACE_LEVEL=0 & set USE_LUAJIT=0
#
# Delete '..\IPFire-database.db' to force a download and decompression
# in the 'ws_tool.exe asn -u' command.
#
- cmd: del /Q ..\IPFire-database.db
- cmd: set WSOCK_TRACE_LEVEL=1 & ws_tool.exe asn -u
- cmd: set WSOCK_TRACE_LEVEL=0 & ws_tool.exe idna -c 1252 räksmörgås.se öbb.at bücher.ch
- cmd: set WSOCK_TRACE_LEVEL=0 & geoip-test.bat -4
- cmd: set WSOCK_TRACE_LEVEL=0 & geoip-test.bat -6
#
# A simple test of the 'mhook' code:
#
# - cmd: if %BUILDER%. == msvc. (set WSOCK_TRACE_LEVEL=1 & mhook-test.exe)
#
# Create a %ZIP_FILE% of the files needed to run the produced .exe-files (no source-files).
#
# after_test:
# - cmd: set ZIP_FILE=wsock_trace-%BUILDER%-%CPU%-%APPVEYOR_BUILD_NUMBER%.zip
# - cmd: 7z a %ZIP_FILE% .\README.md .\wsock_trace .\geoip .\geoip6 .\drop.txt .\dropv6.txt .\edrop.txt src\*.dll src\*.pdb src\*.lib src\*.a src\*.exe src\*.lua > NUL
#
# Push %ZIP_FILE% as an artifact.
# (cannot use the ZIP_FILE env-var here!)
#
# artifacts:
# - path: wsock_trace-%BUILDER%-%CPU%-%APPVEYOR_BUILD_NUMBER%.zip
# name: Wsock-Trace
#
# Try to preserve previously downloaded stuff in 'CI-temp'.
#
cache:
- 'C:\projects\wsock-trace\CI-temp'