forked from stp/minisat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
92 lines (73 loc) · 2.38 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
# branches to build
branches:
# whitelist
only:
- master
- appveyor_debug
# Operating system (build VM template)
os: Visual Studio 2015
# scripts that are called at very beginning, before repo cloning
init:
- git config --global core.autocrlf input
# clone directory
clone_folder: c:\projects\minisat
platform:
- x64
# - x86
environment:
global:
BOOST_ROOT: C:\projects\minisat\boost_1_59_0_install
ZLIB_ROOT: C:\projects\minisat\zlib\myinstall
BUILD_TYPE: Release
MSBUILD_FLAGS: /maxcpucount /nologo
configuration:
- Release
build_script:
#- IF "%PLATFORM%" == "x86" ( SET BOOST_LIBRARYDIR=C:/Libraries/boost_1_59_0/lib32-msvc-14.0)
- IF "%PLATFORM%" == "x86" ( SET CMAKE_GENERATOR="Visual Studio 14 2015")
#- IF "%PLATFORM%" == "x64" ( SET BOOST_LIBRARYDIR=C:/Libraries/boost_1_59_0/lib64-msvc-14.0)
- IF "%PLATFORM%" == "x64" ( SET CMAKE_GENERATOR="Visual Studio 14 2015 Win64")
- echo %PLATFORM%
- echo %BOOST_LIBRARYDIR%
- echo %CMAKE_GENERATOR%
- echo %configuration%
- echo %APPVEYOR_BUILD_FOLDER%
- echo %cd%
# zlib
# TODO check out http://stackoverflow.com/questions/10507893/libzip-with-visual-studio-2010
- cd C:\projects\minisat
- git clone https://github.com/madler/zlib
- cd zlib
- git checkout v1.2.8
- echo %cd%
- mkdir build
- mkdir myinstall
- cd build
- cmake -G %CMAKE_GENERATOR% -DCMAKE_INSTALL_PREFIX=%ZLIB_ROOT% ..
- if %PLATFORM%==x86 call msbuild %MSBUILD_FLAGS% /t:Build /p:Configuration=%CONFIGURATION% /p:Platform="x86" zlib.sln
- if %PLATFORM%==x64 call msbuild %MSBUILD_FLAGS% /t:Build /p:Configuration=%CONFIGURATION% /p:Platform="x64" zlib.sln
- msbuild %MSBUILD_FLAGS% INSTALL.vcxproj
- dir ..\myinstall\
# minisat
- cd C:\projects\minisat
- mkdir build
- mkdir myinstall
- cd build
- cmake -G %CMAKE_GENERATOR% -DCMAKE_INSTALL_PREFIX=%MINISAT_ROOT% -DZLIB_ROOT=%ZLIB_ROOT% ..
- cmake --build . --config %CONFIGURATION%
- dir ..\myinstall\
build:
# project: INSTALL.vcxproj # path to Visual Studio solution or project
parallel: true
verbosity: minimal
# scripts to run after build
after_build:
- 7z a c:\projects\minisat\minisat.zip %APPVEYOR_BUILD_FOLDER%\build -tzip
- cd c:\projects\minisat
artifacts:
- path: minisat.zip
name: minisat.zip
deploy_script:
#- cd c:\projects\minisat
#- curl -T minisat.zip --user %ACCOUNT% https://someplace/
test: off