forked from gismo/gismo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
161 lines (132 loc) · 4.88 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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
branches:
only:
- stable
- ci_test
# Specify version format
version: "G+Smo-stable.{build}"
# Operating system (build VM template)
os:
# - Windows Server 2012 R2
# - Default Azure
# - SharePoint 2013
# - MinGW
# - Visual Studio 2014 CTP4
- Visual Studio 2015
#clone_depth: 5 # clone entire repository history if not defined
shallow_clone: true
# scripts that are called at very beginning, before repo cloning
#init:
# - cmd: cmake --version
# - cmd: echo Platform is %platform%
# - cmd: set
# - cmd: msbuild /version
# - cmd: wmic os get osarchitecture
# clone directory
clone_folder: C:\projects\gismo
build:
verbosity: minimal
parallel: true
# Do not build on tags (GitHub only)
skip_tags: true
# scripts that run after cloning repository
install:
# install mingw
#- if [%BUILD%]==[mingw] appveyor DownloadFile "https://bintray.com/artifact/download/drewwells/generic/x86_64-4.9.2-release-win32-seh-rt_v4-rev3.7z" -FileName mw64.7z
- if [%BUILD%]==[mingw] appveyor DownloadFile "http://netcologne.dl.sourceforge.net/project/mingw-w64/Toolchains targetting Win64/Personal Builds/mingw-builds/5.1.0/threads-win32/seh/x86_64-5.1.0-release-win32-seh-rt_v4-rev0.7z" -FileName mw64.7z
#- if [%BUILD%]==[mingw] appveyor DownloadFile "http://netcologne.dl.sourceforge.net/project/mingw-w64/Toolchains targetting Win64/Personal Builds/mingw-builds/5.1.0/threads-posix/seh/x86_64-5.1.0-release-posix-seh-rt_v4-rev0.7z" -FileName mw64.7z
- if [%BUILD%]==[mingw] 7z x -oC:\ mw64.7z > NUL
# scripts to run before build
before_build:
- if [%BUILD%]==[msvc2015] set envpath=C:\Program Files (x86)\MSBuild\14.0\Bin
#- if [%BUILD%]==[mingw] set PATH=C:\mingw64\bin;%PATH%
#- if [%BUILD%]==[mingw] rename "C:\Program Files (x86)\Git\bin\sh.exe" "sh2.exe"
- if [%BUILD%]==[mingw] rename "C:\Program Files\Git\usr\bin\sh.exe" "sh2.exe"
- cmd: cd C:\projects && md build-gismo && cd build-gismo
- set PATH=%envpath%;%PATH%
- cmd: cmake -DSITE="%APPVEYOR_PULL_REQUEST_NUMBER%-%APPVEYOR_PULL_REQUEST_HEAD_REPO_BRANCH% [appVeyor]" -DBUILDNAME="%generator% %configuration%" -G "%generator%" -DCMAKE_BUILD_TYPE=%configuration% -DGISMO_WITH_ONURBS=ON -DGISMO_BUILD_UNITTESTS=ON ../gismo
# for MSYS
# - cmd: C:\MinGW\msys\1.0\bin\sh --login -c "
# echo 'C:\MinGW\ /MinGW' > /etc/fstab;
# cd /c/projects/build-gismo;
# cmake -G'MSYS Makefiles' ../gismo;
# make -j2 Experimental
# "
build_script:
#- cmd: if (%BUILD%=="mingw") (mingw32-make -j4) else (msbuild /m:4 /p:Configuration=%configuration% /verbosity:minimal C:\projects\build-gismo\gismo.sln /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll")
- cmd: ctest --output-on-failure -j5 -C %configuration% -D ExperimentalStart -D ExperimentalConfigure -D ExperimentalBuild -D ExperimentalTest -D ExperimentalSubmit #-V
#build:
# project: C:\projects\build-gismo\gismo.sln
# parallel: true # enable MSBuild parallel builds
# verbosity: minimal # MSBuild verbosity level (quiet|minimal|normal|detailed)
# NuGet
#publish_nuget: true
#publish_nuget_symbols: true
#include_nuget_references: true
#test_script:
#- cmd: ctest -j2 -D ExperimentalMemCheck
##############################################################
for:
##############################################################
# Stable branch
-
branches:
only:
- stable
environment:
CTEST_OUTPUT_ON_FAILURE: 1
matrix:
- BUILD: msvc2015
configuration: Release
generator: "Visual Studio 14 2015"
####################
-
branches:
only:
- ci_test
environment:
# custom environment variables, see http://www.appveyor.com/docs/installed-software
CTEST_OUTPUT_ON_FAILURE: 1
#BOOST_ROOT: c:\Libraries\boost
#BOOST_LIBRARYDIR: c:\Libraries\boost\stage\lib
matrix:
- BUILD: msvc2015
configuration: Release
generator: "Visual Studio 14 2015"
- BUILD: msvc2015
configuration: Release
generator: "Visual Studio 14 2015 Win64"
- BUILD: msvc2015
configuration: Debug
generator: "Visual Studio 14 2015 Win64"
- BUILD: mingw
envpath: C:\mingw64\bin
configuration: Release
generator: "MinGW Makefiles"
#MSYS Makefiles
- BUILD: msvc2013
configuration: Release
generator: "Visual Studio 12"
- BUILD: msvc2012
configuration: Release
generator: "Visual Studio 11"
- BUILD: msvc2010
configuration: Release
generator: "Visual Studio 10"
# - BUILD: msvc2008
# Note: error C2039: 'data' : is not a member of 'std::vector<_Ty>'
# ( &std::vector<_Ty>::front() would work)
# configuration: Release
# generator: "Visual Studio 9 2008"
#configuration:
# - Debug
# - RelWithDebInfo
# - Release
# build platform, i.e. Win32 (instead of x86), x64, Any CPU. This setting is optional.
#platform:
# - Win32
# - x64
#artifacts:
# - path: tt
# name: ipopt
# type: dll
#validate: https://codebeautify.org/yaml-validator