forked from libyal/libpff
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
213 lines (207 loc) · 9.44 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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
environment:
matrix:
- TARGET: vs2008
BUILD_ENVIRONMENT: msbuild
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013
VisualStudioVersion: 9.0
platform: Win32
configuration: Release
- TARGET: vs2010
BUILD_ENVIRONMENT: msbuild
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013
VisualStudioVersion: 10.0
platform: Win32
configuration: VSDebug
- TARGET: vs2012
BUILD_ENVIRONMENT: msbuild
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013
VisualStudioVersion: 11.0
platform: x64
configuration: Release
- TARGET: vs2013
BUILD_ENVIRONMENT: msbuild
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013
VisualStudioVersion: 12.0
platform: Win32
configuration: Release
- TARGET: vs2015
BUILD_ENVIRONMENT: msbuild
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
VisualStudioVersion: 14.0
platform: Win32
configuration: Release
- TARGET: vs2017
BUILD_ENVIRONMENT: msbuild
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
VisualStudioVersion: 15.0
configuration: Release
- TARGET: python27
BUILD_ENVIRONMENT: python
PYTHON: "C:\\Python27"
- TARGET: python27-x64
BUILD_ENVIRONMENT: python
PYTHON: "C:\\Python27-x64"
- TARGET: python36
BUILD_ENVIRONMENT: python
PYTHON: "C:\\Python36"
- TARGET: python36-x64
BUILD_ENVIRONMENT: python
PYTHON: "C:\\Python36-x64"
- TARGET: cygwin-gcc
BUILD_ENVIRONMENT: cygwin
CONFIGURE_OPTIONS: ""
CFLAGS: "--coverage"
LDFLAGS: "--coverage"
- TARGET: cygwin-gcc-no-optimization
BUILD_ENVIRONMENT: cygwin
CONFIGURE_OPTIONS: "--enable-shared=no"
CFLAGS: "--coverage -O0"
CPPFLAGS: "-DOPTIMIZATION_DISABLED"
LDFLAGS: "--coverage"
- TARGET: cygwin-gcc-python
BUILD_ENVIRONMENT: cygwin
CONFIGURE_OPTIONS: "--enable-python"
CFLAGS: "--coverage"
LDFLAGS: "--coverage"
- TARGET: cygwin-gcc-python2
BUILD_ENVIRONMENT: cygwin
CONFIGURE_OPTIONS: "--enable-python2"
CFLAGS: "--coverage"
LDFLAGS: "--coverage"
- TARGET: cygwin-gcc-python3
BUILD_ENVIRONMENT: cygwin
CONFIGURE_OPTIONS: "--enable-python3"
CFLAGS: "--coverage"
LDFLAGS: "--coverage"
- TARGET: cygwin-gcc-static-executables
BUILD_ENVIRONMENT: cygwin
CONFIGURE_OPTIONS: "--enable-static-executables"
CFLAGS: "--coverage"
LDFLAGS: "--coverage"
- TARGET: cygwin64-gcc
BUILD_ENVIRONMENT: cygwin64
CONFIGURE_OPTIONS: ""
CFLAGS: "--coverage"
LDFLAGS: "--coverage"
- TARGET: cygwin64-gcc-no-optimization
BUILD_ENVIRONMENT: cygwin64
CONFIGURE_OPTIONS: "--enable-shared=no"
CFLAGS: "--coverage -O0"
CPPFLAGS: "-DOPTIMIZATION_DISABLED"
LDFLAGS: "--coverage"
- TARGET: cygwin64-gcc-python
BUILD_ENVIRONMENT: cygwin64
CONFIGURE_OPTIONS: "--enable-python"
CFLAGS: "--coverage"
LDFLAGS: "--coverage"
- TARGET: cygwin64-gcc-python2
BUILD_ENVIRONMENT: cygwin64
CONFIGURE_OPTIONS: "--enable-python2"
CFLAGS: "--coverage"
LDFLAGS: "--coverage"
- TARGET: cygwin64-gcc-python3
BUILD_ENVIRONMENT: cygwin64
CONFIGURE_OPTIONS: "--enable-python3"
CFLAGS: "--coverage"
LDFLAGS: "--coverage"
- TARGET: cygwin64-gcc-static-executables
BUILD_ENVIRONMENT: cygwin64
CONFIGURE_OPTIONS: "--enable-static-executables"
CFLAGS: "--coverage"
LDFLAGS: "--coverage"
- TARGET: mingw-gcc
BUILD_ENVIRONMENT: mingw
CONFIGURE_OPTIONS: ""
CFLAGS: "--coverage"
LDFLAGS: "--coverage"
- TARGET: mingw-gcc-no-optimization
BUILD_ENVIRONMENT: mingw
CONFIGURE_OPTIONS: "--enable-shared=no"
CFLAGS: "--coverage -O0"
CPPFLAGS: "-DOPTIMIZATION_DISABLED"
LDFLAGS: "--coverage"
- TARGET: mingw-w64-gcc
BUILD_ENVIRONMENT: mingw-w64
CONFIGURE_OPTIONS: ""
CFLAGS: "--coverage"
LDFLAGS: "--coverage"
- TARGET: mingw-w64-gcc-no-optimization
BUILD_ENVIRONMENT: mingw-w64
CONFIGURE_OPTIONS: "--enable-shared=no"
CFLAGS: "--coverage -O0"
CPPFLAGS: "-DOPTIMIZATION_DISABLED"
LDFLAGS: "--coverage"
matrix:
allow_failures:
- TARGET: python27-x64
install:
- cmd: git clone https://github.com/codecov/codecov-bash.git ..\codecov-bash
- cmd: if [%BUILD_ENVIRONMENT%]==[msbuild] (
git clone https://github.com/libyal/vstools.git ..\vstools )
- ps: If ($env:BUILD_ENVIRONMENT -eq "msbuild") {
.\synczlib.ps1 }
- cmd: if [%BUILD_ENVIRONMENT%]==[cygwin] (
C:\cygwin\setup-x86.exe -qgnNdO -l C:\cygwin\var\cache\setup -R c:\cygwin -s http://cygwin.mirror.constant.com -P zlib-devel -P python2-devel -P python3-devel )
- cmd: if [%BUILD_ENVIRONMENT%]==[cygwin64] (
C:\cygwin64\setup-x86_64.exe -qgnNdO -l C:\cygwin64\var\cache\setup -R c:\cygwin64 -s http://cygwin.mirror.constant.com -P zlib-devel -P python2-devel -P python3-devel )
- cmd: if [%BUILD_ENVIRONMENT%]==[mingw] (
C:\MinGW\bin\mingw-get install libz-dev )
- cmd: if [%BUILD_ENVIRONMENT%]==[mingw-w64] (
C:\msys64\usr\bin\pacman -S --noconfirm --needed msys/zlib-devel )
build_script:
- ps: If ($env:BUILD_ENVIRONMENT -eq "msbuild" -or $env:BUILD_ENVIRONMENT -eq "python") {
.\synclibs.ps1;
.\autogen.ps1 }
- cmd: if [%TARGET%]==[vs2008] (
msbuild /verbosity:quiet msvscpp\libpff.sln /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" )
- cmd: if [%TARGET%]==[vs2010] (
set PYTHONPATH=..\vstools &&
C:\Python27\python.exe ..\vstools\scripts\msvscpp-convert.py --no-python-dll --output-format 2010 msvscpp\libpff.sln &&
msbuild /verbosity:quiet vs2010\libpff.sln /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" )
- cmd: if [%TARGET%]==[vs2012] (
set PYTHONPATH=..\vstools &&
C:\Python27\python.exe ..\vstools\scripts\msvscpp-convert.py --extend-with-x64 --output-format 2012 --python-path "C:\\Python27-x64" msvscpp\libpff.sln &&
msbuild /verbosity:quiet vs2012\libpff.sln /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" )
- cmd: if [%TARGET%]==[vs2013] (
set PYTHONPATH=..\vstools &&
C:\Python27\python.exe ..\vstools\scripts\msvscpp-convert.py --output-format 2013 msvscpp\libpff.sln &&
msbuild /verbosity:quiet vs2013\libpff.sln /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" )
- cmd: if [%TARGET%]==[vs2015] (
set PYTHONPATH=..\vstools &&
C:\Python27\python.exe ..\vstools\scripts\msvscpp-convert.py --output-format 2015 msvscpp\libpff.sln &&
msbuild /verbosity:quiet vs2015\libpff.sln /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" )
- cmd: if [%TARGET%]==[vs2017] (
set PYTHONPATH=..\vstools &&
C:\Python27\python.exe ..\vstools\scripts\msvscpp-convert.py --extend-with-x64 --no-python-dll --output-format 2017 --with-dokany msvscpp\libpff.sln &&
msbuild /verbosity:quiet vs2017\libpff.sln /property:Platform=Win32 /property:PlatformToolset=v141 /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" &&
msbuild /verbosity:quiet vs2017\libpff.sln /property:Platform=x64 /property:PlatformToolset=v141 /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" )
- cmd: if [%BUILD_ENVIRONMENT%]==[python] (
"%PYTHON%\\python.exe" setup.py bdist_msi )
- cmd: if [%BUILD_ENVIRONMENT%]==[cygwin] (
xcopy /i /q /s C:\projects\libpff C:\cygwin\home\appveyor\libpff &&
C:\cygwin\bin\bash -e -l -c "cd libpff && ./synclibs.sh --use-head && ./autogen.sh" )
- cmd: if [%BUILD_ENVIRONMENT%]==[cygwin64] (
xcopy /i /q /s C:\projects\libpff C:\cygwin64\home\appveyor\libpff &&
C:\cygwin64\bin\bash -e -l -c "cd libpff && ./synclibs.sh --use-head && ./autogen.sh" )
- cmd: if [%BUILD_ENVIRONMENT%]==[mingw] (
xcopy /i /q /s C:\projects\libpff C:\MinGW\msys\1.0\home\appveyor\libpff &&
C:\MinGW\msys\1.0\bin\bash -e -l -c "cd libpff && sed 's/@VERSION@/0.29/g' m4/pkg.m4.in > m4/pkg.m4 && ./synclibs.sh --use-head && ./autogen.sh" )
- cmd: if [%BUILD_ENVIRONMENT%]==[mingw-w64] (
xcopy /i /q /s C:\projects\libpff C:\msys64\home\appveyor\libpff &&
C:\msys64\usr\bin\bash -e -l -c "cd libpff && ./synclibs.sh --use-head && ./autogen.sh" )
test_script:
- cmd: rem Run tests
- ps: If ($env:BUILD_ENVIRONMENT -eq "msbuild") {
.\runtests.ps1 }
- cmd: if [%BUILD_ENVIRONMENT%]==[cygwin] (
C:\cygwin\bin\bash -e -l -c "cd libpff && ./configure ${CONFIGURE_OPTIONS} && make > /dev/null && make check CHECK_WITH_STDERR=1 || if test $? -ne 0 && test -f tests/test-suite.log; then cat tests/test-suite.log; fi" )
- cmd: if [%BUILD_ENVIRONMENT%]==[cygwin64] (
C:\cygwin64\bin\bash -e -l -c "cd libpff && ./configure ${CONFIGURE_OPTIONS} && make > /dev/null && make check CHECK_WITH_STDERR=1 || if test $? -ne 0 && test -f tests/test-suite.log; then cat tests/test-suite.log; fi" )
- cmd: if [%BUILD_ENVIRONMENT%]==[mingw] (
C:\MinGW\msys\1.0\bin\bash -e -l -c "cd libpff && ./configure ${CONFIGURE_OPTIONS} && make > /dev/null && make check CHECK_WITH_STDERR=1 || if test $? -ne 0 && test -f tests/test-suite.log; then cat tests/test-suite.log; fi" )
- cmd: if [%BUILD_ENVIRONMENT%]==[mingw-w64] (
C:\msys64\usr\bin\bash -e -l -c "cd libpff && ./configure ${CONFIGURE_OPTIONS} && make > /dev/null && make check CHECK_WITH_STDERR=1 || if test $? -ne 0 && test -f tests/test-suite.log; then cat tests/test-suite.log; fi" )
after_test:
- cmd: if [%TARGET%]==[mingw-gcc-no-optimization] (
copy C:\projects\codecov-bash\codecov C:\MinGW\msys\1.0\home\appveyor\libpff\codecov.sh &&
C:\MinGW\msys\1.0\bin\bash -e -l -c "cd libpff && chmod a+x ./codecov.sh && sed -i 's/-execdir /-exec /' ./codecov.sh && ./codecov.sh -n ${TARGET} -y .codecov.yml" )