-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
139 lines (112 loc) · 4.15 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
# 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\stp
platform:
- x64
# - x86
environment:
global:
BOOST_ROOT: C:\Libraries\boost_1_59_0
MINISAT_ROOT: C:\projects\stp\minisat\myinstall
ZLIB_ROOT: C:\projects\stp\zlib\myinstall
MSBUILD_FLAGS: /maxcpucount /nologo
PYTHON: "C:\\Python36-x64"
APPVEYOR_SAVE_CACHE_ON_ERROR: false
install:
"%PYTHON%\\python.exe -m pip install lit"
configuration:
- Release
#cache:
#- C:\projects\stp\llvm -> appveyor.yml
#- C:\projects\stp\llvm.build -> appveyor.yml
build_script:
- IF "%PLATFORM%" == "x86" ( SET CMAKE_GENERATOR="Visual Studio 14 2015")
- IF "%PLATFORM%" == "x64" ( SET CMAKE_GENERATOR="Visual Studio 14 2015 Win64")
- echo %PLATFORM%
- echo %CMAKE_GENERATOR%
- echo %configuration%
- echo %APPVEYOR_BUILD_FOLDER%
- echo %cd%
# The STP query-file-tests require the "not" tool. For now, we use the one
# provided by LLVM. This should eventually be replaced by the not tool of
# OutputCheck.
#
# Note: the tests are currently disabled on AppVeyor (see below)
#
# - cd C:\projects\stp
# - if not exist llvm git clone --depth=1 --branch release_40 https://github.com/llvm-mirror/llvm
# - if not exist llvm.build mkdir llvm.build
# - cd llvm.build
# - if not exist Release\bin\not.exe cmake -G %CMAKE_GENERATOR% -DPYTHON_EXECUTABLE=%PYTHON%\python.exe ..\llvm
# - if not exist Release\bin\not.exe cmake --build . --config Release --target not
# - set PATH=%PATH%;%cd%\Release\bin
# zlib
# TODO check out http://stackoverflow.com/questions/10507893/libzip-with-visual-studio-2010
- cd C:\projects\stp
- 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% ..
- cmake --build . --config %CONFIGURATION%
- cmake --build . --config %CONFIGURATION% --target install
- dir ..\myinstall\
# minisat
- cd C:\projects\stp
- git clone https://github.com/msoos/minisat
- cd minisat
- echo %cd%
- mkdir build
- mkdir myinstall
- cd build
- cmake -G %CMAKE_GENERATOR% -DCMAKE_INSTALL_PREFIX=%MINISAT_ROOT% -DZLIB_ROOT=%ZLIB_ROOT% ..
- cmake --build . --config %CONFIGURATION%
- cmake --build . --config %CONFIGURATION% --target install
- dir ..\myinstall\
- dir ..\myinstall\lib\
- dir ..\myinstall\bin\
- dir ..\myinstall\include\
# get flex, bison, perl
- C:\cygwin64\setup-x86_64.exe -qnNd -R C:/cygwin64 -s http://cygwin.mirror.constant.com -l C:/cygwin64/var/cache/setup --packages "flex,bison,perl"
# finally STP
- cd c:\projects\stp
- git submodule update --init --recursive
# Building in c:\projects\stp\build fails with cmake --build since ASTKind.h
# cannot be found, so build it in ..\stp.build
- mkdir ..\stp.build
- cd ..\stp.build
- cmake --version
- cmake -G %CMAKE_GENERATOR% -DBoost_USE_STATIC_LIBS=ON -DENABLE_TESTING=ON -DPYTHON_EXECUTABLE="%PYTHON%\\python.exe" -DPYTHON_LIB_INSTALL_DIR="%PYTHON%" -DLIT_TOOL="%PYTHON%\\Scripts\\lit.exe" -DMINISAT_LIBDIR=%MINISAT_ROOT% -DMINISAT_INCLUDE_DIRS=%MINISAT_ROOT%\include -DZLIB_ROOT=%ZLIB_ROOT% -DCMAKE_PREFIX_PATH=C:\cygwin64 ..\stp
- cmake --build . --config %CONFIGURATION%
# Disabling test execution on AppVeyor for now. The tests pass locally, but fail
# on AppVeyor for reasons yet unknown. See the discussion of issue #247.
# - cmake --build . --config %CONFIGURATION% --target check
- cmake --build . --config %CONFIGURATION% --target install
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\stp\stp.zip %APPVEYOR_BUILD_FOLDER%\..\stp.build -tzip
- cd c:\projects\stp
artifacts:
- path: stp.zip
name: stp.zip
deploy_script:
#- cd c:\projects\stp
#- curl -T stp.zip --user %ACCOUNT% https://someplace/
test: off