forked from sfepy/sfepy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
executable file
·111 lines (90 loc) · 3.29 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
107
108
109
110
111
#
# SfePy minimal appveyor.yml config file
#
# YAML Reference Config: https://www.appveyor.com/docs/appveyor-yml/
# Environmental Variables Guide: https://www.appveyor.com/docs/environment-variables/
# YAML Validator: https://ci.appveyor.com/tools/validate-yaml
#
#---------------------------------#
# general configuration #
#---------------------------------#
# version format
#version: ''
init:
# Set "build version number" to "short-commit-hash" or when tagged to "tag name" (Travis style)
- ps: >-
if ($env:APPVEYOR_REPO_TAG -eq "true")
{
Update-AppveyorBuild -Version "SfePy-$env:APPVEYOR_REPO_TAG_NAME"
}
else
{
Update-AppveyorBuild -Version "SfePy-$($env:APPVEYOR_REPO_COMMIT.substring(0,8))"
}
#---------------------------------#
# environment configuration #
#---------------------------------#
# this is how to allow failing jobs in the matrix
matrix:
fast_finish: false
environment:
matrix:
- PYTHON: "C:\\Python37_64"
PYTHON_VERSION: "3.9"
PYTHON_ARCH: "64"
CONDA_PY: "39"
install:
# If there is 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." }
#
# Install (and update) the appropriate Miniconda.
#
- powershell .\\deployment-CI\\miniconda-install.ps1
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
- conda config --set always_yes yes --set changeps1 no
- conda config --add channels conda-forge
- cmd.exe /c conda init
- "conda create -c conda-forge -q -n sfepy-test python=%PYTHON_VERSION% numpy scipy cython matplotlib pytables pyparsing sympy meshio importlib_metadata h5py netCDF4 psutil"
- conda activate sfepy-test
#
# Scikit UMFPACK (TBD)
#
# IGA kit
# Install mingw/gfortran build tools
#
- conda install -q m2w64-gcc m2w64-gcc-libs m2w64-gcc-libs-core m2w64-gcc-fortran
#- conda install -q libpython
#
#- pip install https://bitbucket.org/dalcinl/igakit/get/default.tar.gz
- pip install --global-option build_ext --global-option --compiler=mingw32 https://github.com/dalcinl/igakit/archive/refs/heads/master.zip
#
# Revert back to native MSVC build tools
#
# - conda remove -q libpython
#
#---------------------------------#
# build configuration #
#---------------------------------#
# to disable automatic builds
build: off
#---------------------------------#
# tests configuration #
#---------------------------------#
# to run your custom scripts instead of automatic tests
test_script:
- python setup.py build_ext --inplace
- ps: |
python -c "import sfepy; sfepy.test()"
#---------------------------------#
# notifications #
#---------------------------------#
# Please note: notifications settings are merged with GUI settings!
notifications:
# Email
- provider: Email
on_build_success: false
on_build_failure: false
on_build_status_changed: false