forked from OpenNavigationSurface/BAG
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
66 lines (55 loc) · 2.06 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
skip_tags: true
skip_commits:
files:
- docs/**
- '.github/workflows/*'
- readme.*
- README.*
- '*.md'
- '*.svg'
environment:
matrix:
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
VS_VERSION: Visual Studio 16
platform: x64
VS: 2019
PYTHON_VERSION: 3.8
PYTHON_ARCH: x64
MINICONDA: C:\Miniconda38-x64
matrix:
allow_failures:
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
VS_VERSION: Visual Studio 15
platform: x64
PYTHON_VERSION: 3.7
PYTHON_ARCH: x64
MINICONDA: C:\Miniconda37-x64
install:
- set PATH=%MINICONDA%;%MINICONDA%\Library\bin;%MINICONDA%\Scripts;%PATH%
# Install the build and runtime dependencies of the project.
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
- conda info -a
- conda config --add channels conda-forge
- conda create -q -n test-environment python=%PYTHON_VERSION%
- activate test-environment
- conda install cmake ninja hdf5 gdal libxml2 swig=4.0.1 catch2 unittest-xml-reporting pytest pytest-cov pytest-xdist
- conda list --show-channel-urls
# Check that we have the expected version of Python
- python --version
- if %VS%==2019 call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"
- if %VS%==2017 call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"
build: off
build_script:
- set CC=cl.exe
- set CXX=cl.exe
- cd
- cmake -Bbuild -S. -GNinja -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=\install -DHDF5_ROOT=%CONDA_PREFIX%\Library -DBAG_BUILD_TESTS:BOOL=ON -DBAG_BUILD_PYTHON:BOOL=ON -DBAG_CI=ON
- cmake --build build
- set PATH=C:\projects\bag\build\api;%PATH%
- set BAG_SAMPLES_PATH=C:\projects\bag\examples\sample-data
- build\tests\bag_tests.exe
- python build\api\swig\python\setup.py install
- copy build\api\baglib.dll "%MINICONDA%"\envs\test-environment\baglib.dll
- pytest --cov=bagPy --cov-branch --cov-report=xml --junitxml=python-test-results.xml python
deploy: off