forked from biolab/orange3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
89 lines (71 loc) · 2.54 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
# https://packaging.python.org/en/latest/appveyor/
skip_commits:
files:
- doc/*
- .travis
- benchmark
- tutorials
shallow_clone: true
clone_depth: 30
matrix:
fast_finish: true
environment:
global:
PIP_DISABLE_PIP_VERSION_CHECK: 1
# disable threaded builds on Python 3.5+ when using numpy's distutils
# (https://github.com/numpy/numpy/issues/7607)
BUILD_GLOBAL_OPTIONS: build -j1
BUILD_ENV: wheel==0.29.0 pip==9.0.1 numpy==1.9.3
# SIP 4.19.4+ with PyQt5==5.9.1+ segfault our tests (GH-2756)
TEST_ENV: sip==4.19.3 PyQt5==5.9 numpy==1.12.1 scipy==1.0.0b1 scikit-learn
matrix:
- PYTHON: C:\Python34
BUILD_GLOBAL_OPTIONS: build
# override test env for Py34; test with PyQt4 and legacy scipy
# from the 'super' installer.
TEST_ENV: numpy==1.12.1 scipy==0.16.1 scikit-learn PyQt4==4.11.4
- PYTHON: C:\Python34-x64
BUILD_GLOBAL_OPTIONS: build
TEST_ENV: numpy==1.12.1 scipy==1.0.0b1 scikit-learn PyQt5==5.5.1
- PYTHON: C:\Python35
- PYTHON: C:\Python35-x64
- PYTHON: C:\Python36
- PYTHON: C:\Python36-x64
cache:
- '%LOCALAPPDATA%\pip\cache -> appveyor.yml'
install:
# Patch VC 2010 64-bit toolchain
- call .ci_tools/appveyor/patch-vcvars.bat
# Configure pip: Add extra links url, force binary numpy, scipy, ...
- echo [install]> pip.ini
- echo find-links =>> pip.ini
- echo https://orange.biolab.si/download/files/wheelhouse/>> pip.ini
- echo only-binary = numpy,scipy,bottleneck,scikit-learn>> pip.ini
- set "PIP_CONFIG_FILE=%CD%\pip.ini"
- type %PIP_CONFIG_FILE%
- set "PATH=%PYTHON%;%PYTHON%\Scripts;%PATH%"
- python -m ensurepip
- python -m pip install pip~=9.0.1 wheel~=0.29.0
- python -m pip install %BUILD_ENV_INDEX% %BUILD_ENV%
build_script:
- python -m pip list --format=freeze
- python setup.py clean --all
# get the package version
- for /f %%f in ('python setup.py --version') do ( set "VERSION=%%f" )
- python setup.py %BUILD_GLOBAL_OPTIONS% bdist_wheel
test_script:
- python -m venv --clear build\.test
- build\.test\Scripts\activate
- cd build\.test
# Pre-populate the test environment
- python -m pip install pip~=9.0.1 wheel~=0.29.0
- python -m pip install %TEST_ENV_INDEX% %TEST_ENV%
- python -m pip install --pre -f ..\..\dist orange3==%VERSION%
- python -m pip list --format=freeze
# Raise OrangeDeprecationWarnings as errors
- set ORANGE_DEPRECATIONS_ERROR=1
- set PYTHONWARNINGS=module
- python -m unittest -b -v Orange.tests Orange.widgets.tests
- cd ..\..
artifacts:
- path: dist\*.whl