forked from LLNL/conduit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
41 lines (36 loc) · 1.38 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
environment:
matrix:
- CMAKE_GENERATOR: "Visual Studio 14 2015"
CONFIG: Release
PYTHON_VERSION: 2.7
MINICONDA: C:\Miniconda
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
- "set PATH=%MINICONDA%;%MINICONDA%\\Scripts;%PATH%"
- conda update --yes conda
- conda install --yes numpy
before_build:
# remove some noisy warnings from Xamarin
- del "C:\Program Files (x86)\MSBuild\14.0\Microsoft.Common.targets\ImportAfter\Xamarin.Common.targets"
# configure
- echo Running cmake ...
# enable hdf5 support and use default python
- cmake -Hsrc -Bbuild -G "%CMAKE_GENERATOR%" -DENABLE_PYTHON=TRUE
#- cmake -Hsrc -Bbuild -G "%CMAKE_GENERATOR%" -DHDF5_DIR="C:\\Program Files\\HDF_Group\\HDF5\\1.8.18" -DENABLE_PYTHON=TRUE
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