-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
146 lines (139 loc) · 5.4 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
environment:
matrix:
- CMAKE_GENERATOR: "Visual Studio 14 2015"
CONFIG: Release
BUILD_SHARED_LIBS: ON
ENABLE_GMOCK: OFF
ENABLE_BENCHMARKS: OFF
ENABLE_MPI: OFF
- CMAKE_GENERATOR: "Visual Studio 14 2015"
CONFIG: Release
BUILD_SHARED_LIBS: OFF
ENABLE_GMOCK: ON
ENABLE_BENCHMARKS: ON
ENABLE_MPI: OFF
- CMAKE_GENERATOR: "Visual Studio 14 2015"
CONFIG: Release
BUILD_SHARED_LIBS: OFF
ENABLE_GMOCK: OFF
ENABLE_BENCHMARKS: OFF
ENABLE_MPI: ON
init:
# line endings magic
- git config --global core.autocrlf input
# set git user info
- git config --global user.email "[email protected]"
- git config --global user.name "BLT Robot"
install:
# Install MS-MPI
- ps: Start-FileDownload 'https://download.microsoft.com/download/B/2/E/B2EB83FE-98C2-4156-834A-E1711E6884FB/MSMpiSetup.exe'
- MSMpiSetup.exe -unattend
- set PATH=C:\Program Files\Microsoft MPI\Bin;%PATH%
# Install MS-MPI SDK
- ps: Start-FileDownload 'https://download.microsoft.com/download/B/2/E/B2EB83FE-98C2-4156-834A-E1711E6884FB/msmpisdk.msi'
- msmpisdk.msi /passive
before_build:
# remove some noisy warnings from Xamarin
- del "C:\Program Files (x86)\MSBuild\14.0\Microsoft.Common.targets\ImportAfter\Xamarin.Common.targets"
# copy blt into blt-test and setup to build there
- ps: cd ..
- mkdir build
- cp -r blt\cmake\blt-test .
# create a git repo for blt-test to test the git macros
- cd blt-test
- git init
- git add -A
- git commit -a -m "Initial Commit"
- git checkout -b test-branch
- git tag test-tag
- cd ..\build
build_script:
#########################################################
#########################################################
# blt-test
#########################################################
#########################################################
# configure
- echo Running cmake ...
- cmake -G "%CMAKE_GENERATOR%" ^
-D BLT_SOURCE_DIR:PATH="c:\projects\blt" ^
-D BUILD_SHARED_LIBS=%BUILD_SHARED_LIBS% ^
-D ENABLE_GMOCK=%ENABLE_GMOCK% ^
-D ENABLE_BENCHMARKS=%ENABLE_BENCHMARKS% ^
-D ENABLE_OPENMP=ON ^
-D ENABLE_MPI=%ENABLE_MPI% ^
-D MPI_HOME:PATH="C:/Program Files (x86)/Microsoft SDKs/MPI" ^
-D MPI_C_INCLUDE_PATH:PATH="${MPI_HOME}/Include" ^
-D MPI_C_LIBRARIES:PATH="${MPI_HOME}/Lib/x86/msmpi.lib" ^
-D MPI_CXX_INCLUDE_PATH:PATH="${MPI_HOME}/Include" ^
-D MPI_CXX_LIBRARIES:PATH="${MPI_HOME}/Lib/x86/msmpi.lib" ^
..\blt-test
- cd ..
#build
- echo Building blt-test ...
- cmake --build build --config %CONFIG%
# run our tests
- cmake -E env CTEST_OUTPUT_ON_FAILURE=1 cmake --build build --config %CONFIG% --target RUN_TESTS
- cd ..
#########################################################
#########################################################
# tutorial tests
#########################################################
#########################################################
#########################################################
# test docs/tutorial/blank_project
#########################################################
- mkdir build-tutorial_blank_project
- cd build-tutorial_blank_project
- echo Running cmake ...
- cmake -G "%CMAKE_GENERATOR%" ^
-D BLT_SOURCE_DIR:PATH="c:\projects\blt" ^
-D BUILD_SHARED_LIBS=%BUILD_SHARED_LIBS% ^
-D ENABLE_GMOCK=%ENABLE_GMOCK% ^
-D ENABLE_BENCHMARKS=%ENABLE_BENCHMARKS% ^
-D ENABLE_OPENMP=ON ^
-D ENABLE_MPI=%ENABLE_MPI% ^
-D MPI_HOME:PATH="C:/Program Files (x86)/Microsoft SDKs/MPI" ^
-D MPI_C_INCLUDE_PATH:PATH="${MPI_HOME}/Include" ^
-D MPI_C_LIBRARIES:PATH="${MPI_HOME}/Lib/x86/msmpi.lib" ^
-D MPI_CXX_INCLUDE_PATH:PATH="${MPI_HOME}/Include" ^
-D MPI_CXX_LIBRARIES:PATH="${MPI_HOME}/Lib/x86/msmpi.lib" ^
c:\projects\blt\docs\tutorial\blank_project
- cd ..
#build
- echo Building Tutorial Blank Project ...
- cmake --build build-tutorial_blank_project --config %CONFIG%
# run our tests
- cmake -E env CTEST_OUTPUT_ON_FAILURE=1 cmake --build build-tutorial_blank_project --config %CONFIG% --target RUN_TESTS
- cd ..
#########################################################
# test docs/tutorial/calc_pi
#########################################################
- mkdir build-tutorial_calc_pi
- cd build-tutorial_calc_pi
- cmake -G "%CMAKE_GENERATOR%" ^
-D BLT_SOURCE_DIR:PATH="c:\projects\blt" ^
-D BUILD_SHARED_LIBS=%BUILD_SHARED_LIBS% ^
-D ENABLE_GMOCK=%ENABLE_GMOCK% ^
-D ENABLE_BENCHMARKS=%ENABLE_BENCHMARKS% ^
-D ENABLE_OPENMP=ON ^
-D ENABLE_MPI=%ENABLE_MPI% ^
-D MPI_HOME:PATH="C:/Program Files (x86)/Microsoft SDKs/MPI" ^
-D MPI_C_INCLUDE_PATH:PATH="${MPI_HOME}/Include" ^
-D MPI_C_LIBRARIES:PATH="${MPI_HOME}/Lib/x86/msmpi.lib" ^
-D MPI_CXX_INCLUDE_PATH:PATH="${MPI_HOME}/Include" ^
-D MPI_CXX_LIBRARIES:PATH="${MPI_HOME}/Lib/x86/msmpi.lib" ^
c:\projects\blt\docs\tutorial\calc_pi
- cd ..
#build
- echo Building Tutorial Calc Pi ...
- cmake --build build-tutorial_calc_pi --config %CONFIG%
# run our tests
- cmake -E env CTEST_OUTPUT_ON_FAILURE=1 cmake --build build-tutorial_calc_pi --config %CONFIG% --target RUN_TESTS
- cd ..
on_failure:
- ps: |
Write-Output "CMakeOutput.log"
cat c:\projects\build\CMakeFiles\CMakeOutput.log
Write-Output "CMakeError.log"
cat c:\projects\build\CMakeFiles\CMakeError.log