netcdf-c/appveyor.yml

45 lines
1.2 KiB
YAML
Raw Normal View History

2018-04-25 05:40:24 +08:00
image: Visual Studio 2017
environment:
matrix:
- TARGET_ARCH: x64
2018-04-25 06:15:26 +08:00
CONDA_INSTALL_LOCN: C:\\Miniconda-x64
2018-04-26 03:53:34 +08:00
MSYS2_INSTALL_LOCN: C:\msys64
MSYS2_BIN_LOCN: C:\msys64\usr\bin
2018-04-25 06:18:42 +08:00
CMAKE_GENERATOR: "Visual Studio 15 Win64"
platform:
- x64
2018-04-25 05:45:00 +08:00
braches:
except:
- /.*[.]dmh/
- /.*[.]wif/
2018-04-25 05:59:41 +08:00
# Do not build feature branch with open Pull Requests
skip_branch_with_pr: true
2018-04-25 05:45:00 +08:00
install:
2018-04-27 02:32:17 +08:00
- cmd: set SRC_DIR=%cd%
- cmd: set INSTALL_LOC=%SRC_DIR%\install
2018-04-27 02:44:53 +08:00
- cmd: set PATH=%PATH%;%MSYS2_BIN_LOCN%;%INSTALL_LOC%\bin;%INSTALL_LOC%\lib
2018-04-25 05:45:00 +08:00
- cmd: call %CONDA_INSTALL_LOCN%\Scripts\activate.bat
- cmd: conda config --set always_yes yes --set changeps1 no --set show_channel_urls true
- cmd: conda update conda
- cmd: conda install hdf5=1.8.18 curl hdf4
2018-04-25 05:59:41 +08:00
configuration: Release
2018-04-25 06:15:26 +08:00
build: off
2018-04-25 05:59:41 +08:00
# Run a custom script.
build_script:
- cmd: mkdir build
- cmd: cd build
- cmd: cmake .. -G "%CMAKE_GENERATOR%" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=%INSTALL_LOC% -DENABLE_BASH_SCRIPT_TESTING=OFF -DENABLE_TESTS=OFF
2018-04-25 06:15:26 +08:00
- cmd: if errorlevel 1 exit 1
2018-05-16 02:59:17 +08:00
- cmd: cmake --build . --config Release -- /maxcpucount:4
2018-04-26 04:50:05 +08:00
test_script:
2018-05-16 02:59:17 +08:00
- cmd: cmake --build . --config Release --target install -- /maxcpucount:4