forked from gismo/gismo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
157 lines (129 loc) · 4.95 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
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
image:
- Visual Studio 2015
- Ubuntu
#clone_depth: 5 # clone entire repository history if not defined
shallow_clone: true
# scripts that are called at very beginning, before repo cloning
init:
# - sh: nproc
# - cmake --version
# - cmd: echo Platform is %platform%
# - cmd: set
# - cmd: msbuild /version
# - cmd: wmic os get osarchitecture
# clone directory (default)
#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
- cmd: 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
- cmd: if [%BUILD%]==[mingw] 7z x -oC:\ mw64.7z > NUL
# scripts to run before build
before_build:
#- cmd: dir "%ProgramFiles(x86)%\Windows Kits\8.1\Debuggers"
#- cmd: dir "%ProgramFiles(x86)%\Windows Kits\8.1\Debuggers"\lib\x64
#- cmd: dir "%ProgramFiles(x86)%\Windows Kits\8.1\Debuggers"\inc
- cmd: if [%BUILD%]==[msvc2015] set envpath=C:\Program Files (x86)\MSBuild\14.0\Bin
#- if [%BUILD%]==[mingw] set PATH=C:\mingw64\bin;%PATH%
- cmd: if [%BUILD%]==[mingw] rename "C:\Program Files\Git\usr\bin\sh.exe" "sh2.exe"
- cmd: cd C:\projects && md build-gismo && cd build-gismo
- cmd: set PATH=%envpath%;%PATH%
- sh: cd ~/projects && mkdir build-gismo && cd build-gismo
- cmd: cmake -DCMAKE_QUIET=ON -DCMAKE_DISABLE_FIND_PACKAGE_Doxygen=TRUE -DSITE="%APPVEYOR_PULL_REQUEST_NUMBER%-%APPVEYOR_PULL_REQUEST_HEAD_REPO_BRANCH% [appVeyor]" -DBUILDNAME="%generator%-%configuration%" -G "%generator%" -DCMAKE_BUILD_TYPE=%configuration% -DGISMO_OPTIONAL="gsOpennurbs" -DGISMO_BUILD_UNITTESTS=ON ../gismo #-DGISMO_WITH_XDEBUG=ON -DDbgHelp_DIR="%ProgramFiles(x86)%\Windows Kits\8.1\Debuggers" ../gismo
- sh: cmake -DCMAKE_QUIET=ON -DCMAKE_DISABLE_FIND_PACKAGE_Doxygen=TRUE -DSITE="$APPVEYOR_PULL_REQUEST_NUMBER-$APPVEYOR_PULL_REQUEST_HEAD_REPO_BRANCH [appVeyor]" -DBUILDNAME="Ubuntu-Makefiles-$configuration" -DCMAKE_BUILD_TYPE=$configuration -DGISMO_BUILD_UNITTESTS=ON -DGISMO_ZLIB_STATIC=1 -DGISMO_OPTIONAL="gsOpennurbs" ../gismo
build_script:
# - cmd: ctest --output-on-failure -j5 -C %configuration% -D ExperimentalStart -D ExperimentalConfigure -D ExperimentalBuild -D ExperimentalTest -D ExperimentalSubmit #-V
# - sh: ctest --output-on-failure -j5 -C $configuration -D ExperimentalStart -D ExperimentalConfigure -D ExperimentalBuild -D ExperimentalTest -D ExperimentalSubmit
- cmd: ctest -S ../gismo/cmake/ctest_script.cmake -C %configuration% -D KEEPCONFIG=ON -D CTEST_BUILD_JOBS=5
- sh: ctest -S ../gismo/cmake/ctest_script.cmake -D KEEPCONFIG=ON -D CTEST_BUILD_JOBS=5
# NuGet
#publish_nuget: true
#publish_nuget_symbols: true
#include_nuget_references: true
##############################################################
for:
##############################################################
# Stable branch
-
branches:
only:
- stable
environment:
CTEST_OUTPUT_ON_FAILURE: 1
matrix:
- BUILD: msvc2015
configuration: Release
#configuration: Debug
generator: "Visual Studio 14 2015"
# MAKEFLAGS: -j2
####################
-
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