forked from LLNL/blt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
86 lines (78 loc) · 2.61 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
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 .
- cp -r blt 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
# configure
- echo Running cmake ...
- cmake -G "%CMAKE_GENERATOR%" ^
-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_script:
#build
- echo Building ...
- cmake --build build --config %CONFIG%
after_build:
# run our tests
- cmake -E env CTEST_OUTPUT_ON_FAILURE=1 cmake --build build --config %CONFIG% --target RUN_TESTS
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