This repository has been archived by the owner on Feb 25, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
appveyor.yml
107 lines (102 loc) · 4.98 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
environment:
matrix:
- TARGET: vs2008
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013
VisualStudioVersion: 9.0
platform: Win32
configuration: Release
- TARGET: vs2010
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013
VisualStudioVersion: 10.0
platform: Win32
configuration: VSDebug
- TARGET: vs2012
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013
VisualStudioVersion: 11.0
platform: x64
configuration: Release
- TARGET: vs2013
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013
VisualStudioVersion: 12.0
platform: Win32
configuration: Release
- TARGET: vs2015
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
VisualStudioVersion: 14.0
platform: Win32
configuration: Release
- TARGET: vs2017
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
VisualStudioVersion: 15.0
configuration: Release
- TARGET: cygwin
- TARGET: cygwin64
- TARGET: mingw
- TARGET: mingw-w64
install:
- cmd: git clone https://github.com/codecov/codecov-bash.git ..\codecov-bash
- cmd: git clone https://github.com/libyal/vstools.git ..\vstools
build_script:
- ps: .\synclibs.ps1
- ps: .\autogen.ps1
- cmd: if [%TARGET%]==[vs2008] (
msbuild /verbosity:quiet msvscpp\libcstring.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\libcstring.sln &&
msbuild /verbosity:quiet vs2010\libcstring.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\libcstring.sln &&
msbuild /verbosity:quiet vs2012\libcstring.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\libcstring.sln &&
msbuild /verbosity:quiet vs2013\libcstring.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\libcstring.sln &&
msbuild /verbosity:quiet vs2015\libcstring.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 msvscpp\libcstring.sln &&
msbuild /verbosity:quiet vs2017\libcstring.sln /property:Platform=Win32 /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" &&
msbuild /verbosity:quiet vs2017\libcstring.sln /property:Platform=x64 /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" )
- cmd: if [%TARGET%]==[cygwin] (
xcopy /i /q /s C:\projects\libcstring C:\cygwin\home\appveyor\libcstring &&
C:\cygwin\bin\bash -e -l -c "cd libcstring && ./synclibs.sh --use-head && ./autogen.sh" )
- cmd: if [%TARGET%]==[cygwin64] (
xcopy /i /q /s C:\projects\libcstring C:\cygwin64\home\appveyor\libcstring &&
C:\cygwin64\bin\bash -e -l -c "cd libcstring && ./synclibs.sh --use-head && ./autogen.sh" )
- cmd: if [%TARGET%]==[mingw] (
xcopy /i /q /s C:\projects\libcstring C:\MinGW\msys\1.0\home\appveyor\libcstring &&
C:\MinGW\msys\1.0\bin\bash -e -l -c "cd libcstring && sed 's/@VERSION@/0.29/g' m4/pkg.m4.in > m4/pkg.m4 && ./synclibs.sh --use-head && ./autogen.sh" )
- cmd: if [%TARGET%]==[mingw-w64] (
xcopy /i /q /s C:\projects\libcstring C:\msys64\home\appveyor\libcstring &&
C:\msys64\usr\bin\bash -e -l -c "cd libcstring && ./synclibs.sh --use-head && ./autogen.sh" )
test_script:
- cmd: rem Run tests
- ps: if ($env:TARGET -eq "vs2008") {
.\runtests.ps1 }
- ps: if ($env:TARGET -eq "vs2010") {
.\runtests.ps1 }
- ps: if ($env:TARGET -eq "vs2012") {
.\runtests.ps1 }
- ps: if ($env:TARGET -eq "vs2013") {
.\runtests.ps1 }
- ps: if ($env:TARGET -eq "vs2015") {
.\runtests.ps1 }
- ps: if ($env:TARGET -eq "vs2017") {
.\runtests.ps1 }
- cmd: if [%TARGET%]==[cygwin] (
C:\cygwin\bin\bash -e -l -c "cd libcstring && ./runtests.sh" )
- cmd: if [%TARGET%]==[cygwin64] (
C:\cygwin64\bin\bash -e -l -c "cd libcstring && ./runtests.sh" )
- cmd: if [%TARGET%]==[mingw] (
C:\MinGW\msys\1.0\bin\bash -e -l -c "cd libcstring && ./runtests.sh" )
- cmd: if [%TARGET%]==[mingw-w64] (
C:\msys64\usr\bin\bash -e -l -c "cd libcstring && ./runtests.sh" )
after_test:
- cmd: if [%TARGET%]==[mingw] (
copy C:\projects\codecov-bash\codecov C:\MinGW\msys\1.0\home\appveyor\libcstring\codecov.sh &&
C:\MinGW\msys\1.0\bin\bash -e -l -c "cd libcstring && chmod a+x ./codecov.sh && ./codecov.sh" )