forked from dstahlke/cnpy
/
.appveyor.yml
52 lines (42 loc) · 1.48 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
# See http://msdn.microsoft.com/en-us/library/ms164311.aspx for
# command-line options to MSBuild.
# Speeding up a Visual Studio build.
# http://blogs.msdn.com/b/vcblog/archive/2011/01/05/damn-my-vc-project-is-building-slower-in-vs2010-what-do-i-do-now-a-step-by-step-guide.aspx
version: 'build_{build}-{branch}'
os:
- Windows Server 2012 R2
- Visual Studio 2015
platform: x86
build:
parallel: true
environment:
matrix:
- GENERATOR: "Visual Studio 14 2015"
BUILDFLAGS: "/verbosity:detailed"
- GENERATOR: "MinGW Makefiles"
BUILDFLAGS: "VERBOSE=1"
init:
- cmd: cmake --version
before_build:
# Workaround for CMake not wanting sh.exe on PATH for MinGW
- set PATH=%PATH:C:\Program Files (x86)\Git\bin;=%
- set PATH=%PATH:C:\Program Files\Git\usr\bin;=%
- set PATH=C:\MinGW\bin;%PATH%
# Zlib
- mkdir C:\software && cd C:\software
- appveyor DownloadFile https://github.com/madler/zlib/archive/v1.2.8.tar.gz
- 7z x v1.2.8.tar.gz -so | 7z x -si -ttar > nul
- cd zlib-1.2.8
- cmd: cmake -G"%GENERATOR%" -DCMAKE_INSTALL_PREFIX="C:\software\zlib" .
- cmd: cmake --build . --config release --target install
- set PATH=%PATH%;C:\software\zlib
build_script:
- cd %APPVEYOR_BUILD_FOLDER%
- python setup.py --generator="%GENERATOR%"
- cd build
# See http://msdn.microsoft.com/en-us/library/ms164311.aspx for
# command-line options to MSBuild.
- cmd: cmake --build . -- %BUILDFLAGS%
test_script:
- cmd: ctest --output-on-failure --verbose
deploy: off