@@ -7,76 +7,81 @@ skip_commits:
77 - benchmark
88 - tutorials
99
10+ shallow_clone : true
1011clone_depth : 30
1112
1213matrix :
1314 fast_finish : true
1415
1516environment :
1617 global :
17- STAGING_INDEX : ' https://pypi.anaconda.org/ales-erjavec/simple'
18- NUMPY_BUILD_VERSION : ' 1.9.3'
1918 PIP_DISABLE_PIP_VERSION_CHECK : 1
19+ # disable threaded builds on Python 3.5+ when using numpy's distutils
20+ # (https://github.com/numpy/numpy/issues/7607)
21+ BUILD_GLOBAL_OPTIONS : build -j1
22+ BUILD_ENV : wheel==0.29.0 pip==9.0.1 numpy==1.9.3
23+ TEST_ENV : numpy==1.12.1 scipy==1.0.0b1 scikit-learn PyQt5~=5.9.0
2024
2125 matrix :
2226 - PYTHON : C:\Python34
23- MINICONDA : C:\Miniconda3
24- # BUILD_INSTALLER: '1'
27+ BUILD_GLOBAL_OPTIONS : build
28+ # override test env for Py34; test with PyQt4 and legacy scipy
29+ # from the 'super' installer.
30+ TEST_ENV : numpy==1.12.1 scipy==0.16.1 scikit-learn PyQt4==4.11.4
2531
2632 - PYTHON : C:\Python34-x64
27- MINICONDA : C:\Miniconda3-x64
28- DISTUTILS_USE_SDK : ' 1 '
33+ BUILD_GLOBAL_OPTIONS : build
34+ TEST_ENV : numpy==1.12.1 scipy==1.0.0b1 scikit-learn PyQt5==5.5.1
2935
3036 - PYTHON : C:\Python35
31- MINICONDA : C:\Miniconda35
32- # disable threaded builds on Python 3.5 when using numpy's distutils
33- # (https://github.com/numpy/numpy/issues/7607)
34- BUILD_GLOBAL_OPTIONS : build -j1
3537
3638 - PYTHON : C:\Python35-x64
37- # disable threaded builds on Python 3.5 when using numpy's distutils
38- # (https://github.com/numpy/numpy/issues/7607)
39- BUILD_GLOBAL_OPTIONS : build -j1
40- MINICONDA : C:\Miniconda35 -x64
39+
40+ - PYTHON : C:\Python36
41+
42+ - PYTHON : C:\Python36 -x64
4143
4244cache :
4345 - ' %LOCALAPPDATA%\pip\cache -> appveyor.yml'
4446
4547install :
46- - ps : $env:PATH="$env:PYTHON;$env:PYTHON\Scripts;$env:PATH"
47- - ps : .ci_tools\appveyor\step-install.ps1
48-
49- build_script :
50- - ps : |
51- & .ci_tools\appveyor\step-build.ps1
52- if ($env:BUILD_INSTALLER) {
53- $env:PATH="C:\Program Files (x86)\NSIS;C:\msys2\bin;$env:PATH"
48+ # Patch VC 2010 64-bit toolchain
49+ - call .ci_tools/appveyor/patch-vcvars.bat
50+ # Configure pip: Add extra links url, force binary numpy, scipy, ...
51+ - echo [install]> pip.ini
52+ - echo find-links =>> pip.ini
53+ - echo https://orange.biolab.si/download/files/wheelhouse/>> pip.ini
54+ - echo only-binary = numpy,scipy,bottleneck,scikit-learn>> pip.ini
55+ - set "PIP_CONFIG_FILE=%CD%\pip.ini"
56+ - type %PIP_CONFIG_FILE%
5457
55- bash scripts\windows\build-win-application.sh -d dist\installers
56- if ($LastExitCode -ne 0) { throw "Last command exited with non-zero code." }
58+ - set "PATH=%PYTHON%;%PYTHON%\Scripts;%PATH%"
59+ - python -m ensurepip
60+ - python -m pip install pip~=9.0.1 wheel~=0.29.0
61+ - python -m pip install %BUILD_ENV_INDEX% %BUILD_ENV%
5762
58- bash scripts\windows\build-win-application.sh `
59- -d installers `
60- --standalone
61- if ($LastExitCode -ne 0) { throw "Last command exited with non-zero code." }
62- }
63+ build_script :
64+ - python -m pip list --format=freeze
65+ - python setup.py clean --all
66+ # get the package version
67+ - for /f %%f in ('python setup.py --version') do ( set "VERSION=%%f" )
68+ - python setup.py %BUILD_GLOBAL_OPTIONS% bdist_wheel
6369
6470test_script :
71+ - python -m venv --clear build\.test
72+ - build\.test\Scripts\activate
73+ - cd build\.test
74+ # Pre-populate the test environment
75+ - python -m pip install pip~=9.0.1 wheel~=0.29.0
76+ - python -m pip install %TEST_ENV_INDEX% %TEST_ENV%
77+ - python -m pip install --pre -f ..\..\dist orange3==%VERSION%
78+ - python -m pip list --format=freeze
79+
6580 # Raise OrangeDeprecationWarnings as errors
66- - ps : $env:ORANGE_DEPRECATIONS_ERROR = "1"
67- - ps : $env:PYTHONWARNINGS = "module"
68- - ps : |
69- if ($env:PYTHON -eq "C:\Python34") {
70- # can only test the .whl build on Python 3.4 32-bit because that
71- # is the only platform for which built scipy wheels are available
72- & .ci_tools\appveyor\step-test.ps1
73- }
74- if ($env:MINICONDA) {
75- # Build/test a conda package
76- & .ci_tools\appveyor\step-test-miniconda.ps1
77- }
81+ - set ORANGE_DEPRECATIONS_ERROR=1
82+ - set PYTHONWARNINGS=module
83+ - python -m unittest -b -v Orange.tests Orange.widgets.tests
84+ - cd ..\..
7885
7986artifacts :
8087 - path : dist\*.whl
81- - path : dist\conda\*
82- - path : dist\installers\*
0 commit comments