forked from GeoscienceAustralia/anuga_core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
35 lines (31 loc) · 1.52 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
skip_tags: true
clone_depth: 1
os: Visual Studio 2015
environment:
matrix:
- PY_MAJOR_VER: 3
PYTHON_ARCH: "x86_64"
build_script:
# If there's a newer build queued for the same PR, cancel this one
- ps: if ($env:APPVEYOR_PULL_REQUEST_NUMBER -and $env:APPVEYOR_BUILD_NUMBER -ne ((Invoke-RestMethod `
https://ci.appveyor.com/api/projects/$env:APPVEYOR_ACCOUNT_NAME/$env:APPVEYOR_PROJECT_SLUG/history?recordsNumber=50).builds | `
Where-Object pullRequestId -eq $env:APPVEYOR_PULL_REQUEST_NUMBER)[0].buildNumber) { `
throw "There are newer queued builds for this pull request, failing early." }
- ps: Start-FileDownload "https://repo.continuum.io/miniconda/Miniconda$env:PY_MAJOR_VER-latest-Windows-$env:PYTHON_ARCH.exe" C:\Miniconda.exe; echo "Finished downloading miniconda"
- cmd: C:\Miniconda.exe /S /D=C:\Py
- cmd: C:\Py\Scripts\activate.bat
- CMD: SET
- conda config --set always_yes yes
- conda update conda
- conda create -n anuga_env -c conda-forge python=3.8 brotlipy numpy gdal pytest meshpy cython scipy netcdf4 matplotlib dill future gitpython utm pyproj affine backports.zoneinfo pymetis mpi4py msmpi Pmw
- conda activate anuga_env
# test python
- python --version
# setup for mingw compiler
- conda install -c conda-forge libpython m2w64-toolchain
# there seems to be a bug with distutil by not picking the mingw comiler for anuga
- cp windows_setup.cfg setup.cfg
# install locally so that the pytest will work
- pip install -e .
test_script:
- pytest --pyargs anuga