-
Notifications
You must be signed in to change notification settings - Fork 50
/
Copy pathappveyor.yml
70 lines (56 loc) · 1.8 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
###Appveyor CI build script
# version format
version: 1.0.x{build}
# branches to build
branches:
# whitelist
only:
- master
- 0.3.x
- 1.0.x
- 1.1.x
#---------------------------------#
# environment configuration #
#---------------------------------#
# Operating system (build VM template)
os: Windows Server 2012
# clone directory
clone_folder: c:\sima
environment:
global:
PYTHON: "C:\\conda"
MINICONDA_VERSION: "3.16.0"
CMD_IN_ENV: "cmd /E:ON /V:ON /C .\\appveyor\\run_with_compiler.cmd"
matrix:
- PYTHON_VERSION: "2.7"
# Missing DLLs causes scipy to error on import (May 2018)
# - PYTHON_VERSION: "3.4"
- PYTHON_VERSION: "3.5"
platform:
- x64
- x86
# scripts that are called at very beginning, before repo cloning
init:
- echo %PYTHON_VERSION% %platform%
install:
- powershell appveyor/.install-miniconda.ps1
- SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%
- conda config --set always_yes yes --set changeps1 no
- conda update --yes conda
- conda info -a
- conda create -q --yes -n test-environment python=%PYTHON_VERSION%
- activate test-environment
# - conda install mkl
- conda config --add channels conda-forge
- conda install -q --yes numpy>=1.8 scipy>=0.13 nose h5py cython scikit-image scikit-learn opencv shapely pillow setuptools pip future
# - ps: if ($Env:PYTHON_VERSION -eq "2.7") {conda install -q --yes -c menpo opencv}
- pip install wheel
# - ps: cp -Force C:\conda\pkgs\opencv-2.4.9.1-np19py27_0\Lib\site-packages\cv2.pyd C:\conda\envs\test-environment\Lib\site-packages
# - '%CMD_IN_ENV% python -c "import cv2; print cv2.__version__; print cv2.__file__"'
build: off
test_script:
- "%CMD_IN_ENV% python runtests.py -m full --coverage"
after_test:
- "%CMD_IN_ENV% python setup.py bdist_wheel"
artifacts:
- path: dist\*