forked from hyperspy/hyperspy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
111 lines (88 loc) · 3.46 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
shallow_clone: true
environment:
global:
TEST_DEPS: "pytest pytest-cov wheel"
MPLBACKEND: "agg"
matrix:
# Pre-installed Python versions, which Appveyor may upgrade to
# a later point release.
- PYTHON: "C:\\Miniconda35"
PYTHON_VERSION: "3.5.x"
PYTHON_MAJOR: 3
PYTHON_ARCH: "32"
CONDA_PY: "35"
DEPS: "numpy scipy matplotlib ipython h5py sympy scikit-learn dill setuptools natsort scikit-image cython ipyparallel dask numexpr"
- PYTHON: "C:\\Miniconda35-x64"
PYTHON_VERSION: "3.5.x"
PYTHON_MAJOR: 3
PYTHON_ARCH: "64"
CONDA_PY: "35"
DEPS: "numpy scipy matplotlib ipython h5py sympy scikit-learn dill setuptools natsort scikit-image cython ipyparallel dask numexpr"
- PYTHON: "C:\\Miniconda36"
PYTHON_VERSION: "3.6.x"
PYTHON_MAJOR: 3
PYTHON_ARCH: "32"
CONDA_PY: "36"
DEPS: "numpy scipy matplotlib ipython h5py sympy scikit-learn dill setuptools natsort scikit-image cython ipyparallel dask numexpr"
- PYTHON: "C:\\Miniconda36-x64"
PYTHON_VERSION: "3.6.x"
PYTHON_MAJOR: 3
PYTHON_ARCH: "64"
CONDA_PY: "36"
DEPS: "numpy scipy matplotlib ipython h5py sympy scikit-learn dill setuptools natsort scikit-image cython ipyparallel dask numexpr"
init:
- "ECHO %PYTHON% %PYTHON_VERSION% %PYTHON_ARCH%"
- "ECHO %APPVEYOR_BUILD_FOLDER%"
- "ECHO %CMD_IN_ENV%"
install:
- ps: Add-AppveyorMessage "Starting install..."
# Prepend Python to the PATH
- "SET ORIGPATH=%PATH%"
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
# Check that we have the expected version and architecture for Python
- "python --version"
- "python -c \"import sys; print(sys.version)\"" # this gives more info
- "python -c \"import struct; print(struct.calcsize('P') * 8)\""
# Install the dependencies of the project.
- ps: Add-AppveyorMessage "Installing conda packages..."
- "%CMD_IN_ENV% conda install -yq %TEST_DEPS%"
- "%CMD_IN_ENV% conda install -yq %DEPS%"
- "pip install pytest-mpl"
# Having 'sip' folder on path confuses import of `sip`.
#- "%CMD_IN_ENV% conda install -yq pip"
- ps: Add-AppveyorMessage "Installing hyperspy..."
- "python setup.py install"
build: false # Not a C# project, build stuff at the test step instead.
test_script:
# Run the project tests
- ps: Add-AppveyorMessage "Running tests..."
- "python setup.py build_ext --inplace"
- "py.test --mpl"
- "python setup.py clean"
- ps: Add-AppveyorMessage "Testing completed."
after_test:
- python setup.py bdist_wheel
artifacts:
- path: dist\*.whl
name: win_wheels
on_failure:
- ps: $Env:image_comparison_filename = 'image_comparison_' + $Env:PYTHON_VERSION + '_' + $Env:PYTHON_ARCH + 'bits.zip'
- ps: 7z a -r $Env:image_comparison_filename C:\Users\appveyor\AppData\Local\Temp\1\*png
- ps: Push-AppveyorArtifact $Env:image_comparison_filename
deploy:
provider: GitHub
auth_token:
# to266:
#secure: ptV5Dkz3pSVdjD0qRDpxJgjVlddFtleZ+B+c2X1Fg67P8OX3bHWVktRmlj6hfLhM
# vidartf:
#secure: KwAfARhGEqOnZHltPB6kKu8xmnoiGSk7NMYJBIEbWvFCuVnepoPV7ZcIjUN3pUpK
# sem-geologist:
#secure: RRqUkx9H5VuFNITmm+YzgB0qnqgVGPH1yrPVxb4oCD+FAjcTch2WZAiPEKn4L6w6
# ericpre:
#secure: ae8XsPI+vKJI9AWm0r9+ec71CIkXcnCHlNIQ57v+87hh5k1xuAAxIOi1CFKEmmZv
artifact: win_wheels # upload wheels to release assets
draft: false
prerelease: false
force_update: true
on:
appveyor_repo_tag: true # deploy on tag push only