forked from LLNL/conduit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
106 lines (100 loc) · 3.73 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
image:
- Visual Studio 2017
environment:
matrix:
# - CMAKE_GENERATOR: "Visual Studio 15 2017"
# CONFIG: Release
# PYTHON_VERSION: 2.7
# BUILD_SHARED_LIBS: ON
# ENABLE_PYTHON: ON
# MINICONDA: C:\Miniconda
# ENABLE_MPI: ON
# MPI_HOME: "C:/Program Files (x86)/Microsoft SDKs/MPI"
- CMAKE_GENERATOR: "Visual Studio 15 2017"
CONFIG: Release
PYTHON_VERSION: 3.6
BUILD_SHARED_LIBS: ON
ENABLE_PYTHON: ON
MINICONDA: C:\Miniconda36
ENABLE_MPI: ON
MPI_HOME: "C:/Program Files (x86)/Microsoft SDKs/MPI"
- CMAKE_GENERATOR: "Visual Studio 15 2017"
CONFIG: Release
PYTHON_VERSION: 3.6
BUILD_SHARED_LIBS: OFF
ENABLE_PYTHON: OFF
MINICONDA: C:\Miniconda36
ENABLE_MPI: ON
MPI_HOME: "C:/Program Files (x86)/Microsoft SDKs/MPI"
init:
# line endings magic
- git config --global core.autocrlf input
- "ECHO %PYTHON_VERSION% %MINICONDA%"
install:
# setup hdf5
#- set PATH=%PATH%;%HDF5_BINDIR%
#- ps: Invoke-WebRequest "https://support.hdfgroup.org/ftp/HDF5/current18/bin/windows/extra/hdf5-1.8.18-win64-vs2015-shared.zip" -OutFile hdf5.zip
#- 7z x hdf5.zip -y
# setup python via mini conda
#- ps: Start-Process -FilePath msiexec -ArgumentList /i, "hdf5\HDF5-1.8.18-win64.msi", /quiet -Wait
#
####
# remove default python paths to avoid crossing with miniconda
####
- set PATH=%PATH:C:\Python27;=%
- set PATH=%PATH:C:\Python27\Scripts;=%
# add built-in mini conda path
- "set PATH=%MINICONDA%;%MINICONDA%\\Scripts;%PATH%"
# check path
- "echo %PATH%"
- "echo %PYTHONPATH%"
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
- conda info -a
- conda install numpy
# try to import numpy to as conda gut-check
- python -c "import numpy as n; print(n.__version__); print(n.get_include());"
# try to import numpy to as conda gut-check
# 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
- set PATH=C:\Program Files (x86)\Microsoft SDKs\MPI;%PATH%
# install mpi4py
- pip install mpi4py
# Install CMake 3.9
############################################################################
- ps: Start-FileDownload 'http://portal.nersc.gov/project/visit/cmake/cmake-3.9.6-win64-x64.msi'
- cmake-3.9.6-win64-x64.msi /passive
- set PATH=C:\Program Files\CMake\bin;%PATH%
- cmake --version
before_build:
# remove some noisy warnings from Xamarin
- del "C:\Program Files (x86)\MSBuild\14.0\Microsoft.Common.targets\ImportAfter\Xamarin.Common.targets"
# init submodules
- git submodule update --init --recursive
# configure
- echo Running cmake ...
# TODO enable hdf5 support
#- cmake -Hsrc -Bbuild -G "%CMAKE_GENERATOR%" -DHDF5_DIR="C:\\Program Files\\HDF_Group\\HDF5\\1.8.18" -DENABLE_PYTHON=TRUE
#
# enable mpi support and use default python
- cmake -Hsrc -Bbuild -G "%CMAKE_GENERATOR%" ^
-DBUILD_SHARED_LIBS=%BUILD_SHARED_LIBS% ^
-DENABLE_PYTHON=%ENABLE_PYTHON% ^
-DENABLE_MPI=%ENABLE_MPI% ^
-DMPI_C_INCLUDE_PATH:PATH="%MPI_HOME%/Include" ^
-DMPI_C_LIBRARIES:PATH="%MPI_HOME%/Lib/x86/msmpi.lib" ^
-DMPI_CXX_INCLUDE_PATH:PATH="%MPI_HOME%/Include" ^
-DMPI_CXX_LIBRARIES:PATH="%MPI_HOME%/Lib/x86/msmpi.lib"
build_script:
#build
- echo Building ...
- cmake --build build --config %CONFIG%
after_build:
# run our tests
- ps: cd build
- cmake -E env CTEST_OUTPUT_ON_FAILURE=1 cmake --build . --config %CONFIG% --target RUN_TESTS