forked from biolab/orange3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
74 lines (60 loc) · 2.12 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
# https://packaging.python.org/en/latest/appveyor/
skip_commits:
files:
- doc/*
- .travis
- benchmark
- tutorials
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 -r requirements-doc.txt
# SIP 4.19.4+ with PyQt5==5.9.1+ segfault our tests (GH-2756)
TEST_ENV: sip==4.19.6 PyQt5==5.9.2 numpy~=1.14.0 scipy~=1.0.0 scikit-learn pandas==0.21.1 pymssql
ORANGE_TEST_DB_URI: 'mssql://sa:Password12!@localhost:1433'
matrix:
- PYTHON: C:\Python36-x64
cache:
- '%LOCALAPPDATA%\pip\cache -> appveyor.yml'
services:
- mssql2017
install:
# 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,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