forked from libyal/libfwnt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
75 lines (44 loc) · 1.93 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
environment:
VisualStudioVersion: 11.0
# TODO: add x64, fix issue: LNK1158: cannot run 'cvtres.exe'
platform:
- Win32
# TODO: add VSDebug
configuration:
- Release
install:
- cmd: git clone https://github.com/libyal/libyal.git && move libyal ..\
before_build:
- cmd: xcopy /q /s C:\projects\libfwnt C:\cygwin\home\appveyor\
- cmd: xcopy /q /s C:\projects\libfwnt C:\msys64\home\appveyor\
build_script:
- ps: .\synclibs.ps1
- ps: .\autogen.ps1
- cmd: >-
rem Prepare Visual Studio 2010 build
C:\Python27\python.exe ..\libyal\scripts\msvscpp-convert.py --to 2010 msvscpp\libfwnt.sln
rem Build with Visual Studio 2010
msbuild vs2010\libfwnt.sln /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
rem Prepare Visual Studio 2012 build
C:\Python27\python.exe ..\libyal\scripts\msvscpp-convert.py --to 2012 msvscpp\libfwnt.sln
rem Build with Visual Studio 2012
msbuild vs2012\libfwnt.sln /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
rem Prepare Visual Studio 2013 build
C:\Python27\python.exe ..\libyal\scripts\msvscpp-convert.py --to 2013 msvscpp\libfwnt.sln
rem Build with Visual Studio 2013
msbuild vs2013\libfwnt.sln /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
rem Prepare Cygwin build
C:\cygwin\bin\bash -e -l -c "cd libfwnt"
C:\cygwin\bin\bash -e -l -c "./synclibs.sh && ./autogen.sh"
rem Build with Cygwin
C:\cygwin\bin\bash -e -l -c "./configure && make -j4"
rem Prepare MinGW build
C:\msys64\usr\bin\bash -e -l -c "cd libfwnt"
C:\msys64\usr\bin\bash -e -l -c "./synclibs.sh && ./autogen.sh"
rem Build with MinGW 32-bit
C:\msys64\usr\bin\bash -e -l -c "./configure --host=i686-w64-mingw32 && make -j4"
rem Build with MinGW 64-bit
C:\msys64\usr\bin\bash -e -l -c "./configure --host=x86_64-w64-mingw32 && make -j4"
rem Run tests
test_script:
- ps: .\runtests.ps1