forked from pyxem/pyxem
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
42 lines (33 loc) · 959 Bytes
/
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
# environment variables
environment:
global:
DEPS: "hyperspy-base diffsims"
TEST_DEPS: "pytest"
MPLBACKEND: "agg"
matrix:
- PY_VERSION: 3.7
- PY_VERSION: 3.6
# scripts that run after cloning repository
install:
# Activate miniconda root environment
- "CALL C:\\Miniconda37-x64\\Scripts\\activate.bat"
# Setup miniconda environment.
- ps: Add-AppveyorMessage "Setup miniconda environment..."
- "conda update -y -n base conda"
# See https://github.com/conda/conda/issues/8836 & others
- set "PATH=%MINICONDA%\condabin:%PATH%"
- 'conda config --add channels conda-forge'
- "conda create -y -n testenv python=%PY_VERSION%"
- "conda activate testenv"
# Install the dependencies of pyxem.
- 'conda install -yq %DEPS% %TEST_DEPS%'
# Install our package
- 'pip install -e .'
build: off
test_script:
- 'pytest'
after_test:
- 'python setup.py bdist_wheel'
artifacts:
- path: dist\*.whl
name: wheel