Skip to content

Commit

Permalink
appveyor: Test using scipy 1.0.0b1 openblas linked wheels
Browse files Browse the repository at this point in the history
  • Loading branch information
ales-erjavec committed Sep 27, 2017
1 parent abe0866 commit 1695a0a
Show file tree
Hide file tree
Showing 7 changed files with 58 additions and 213 deletions.
21 changes: 0 additions & 21 deletions .ci_tools/appveyor/build.cmd

This file was deleted.

10 changes: 10 additions & 0 deletions .ci_tools/appveyor/patch-vcvars.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
@echo off
setlocal
:: The VS 2010 64-bit toolchain is missing a vcvars64.bat that distutils is
:: using to query the compiler.
set "vcvars=C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\amd64\vcvars64.bat"
if not exist "%vcvars%" (
echo CALL "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x64 /Release
) > "%vcvars%"
endlocal
@echo on
12 changes: 0 additions & 12 deletions .ci_tools/appveyor/step-build.ps1

This file was deleted.

11 changes: 0 additions & 11 deletions .ci_tools/appveyor/step-install.ps1

This file was deleted.

39 changes: 0 additions & 39 deletions .ci_tools/appveyor/step-test-miniconda.ps1

This file was deleted.

87 changes: 0 additions & 87 deletions .ci_tools/appveyor/step-test.ps1

This file was deleted.

91 changes: 48 additions & 43 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,76 +7,81 @@ skip_commits:
- benchmark
- tutorials

shallow_clone: true
clone_depth: 30

matrix:
fast_finish: true

environment:
global:
STAGING_INDEX: 'https://pypi.anaconda.org/ales-erjavec/simple'
NUMPY_BUILD_VERSION: '1.9.3'
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
TEST_ENV: numpy==1.12.1 scipy==1.0.0b1 scikit-learn PyQt5~=5.9.0

matrix:
- PYTHON: C:\Python34
MINICONDA: C:\Miniconda3
# BUILD_INSTALLER: '1'
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
MINICONDA: C:\Miniconda3-x64
DISTUTILS_USE_SDK: '1'
BUILD_GLOBAL_OPTIONS: build
TEST_ENV: numpy==1.12.1 scipy==1.0.0b1 scikit-learn PyQt5==5.5.1

- PYTHON: C:\Python35
MINICONDA: C:\Miniconda35
# disable threaded builds on Python 3.5 when using numpy's distutils
# (https://github.com/numpy/numpy/issues/7607)
BUILD_GLOBAL_OPTIONS: build -j1

- PYTHON: C:\Python35-x64
# disable threaded builds on Python 3.5 when using numpy's distutils
# (https://github.com/numpy/numpy/issues/7607)
BUILD_GLOBAL_OPTIONS: build -j1
MINICONDA: C:\Miniconda35-x64

- PYTHON: C:\Python36

- PYTHON: C:\Python36-x64

cache:
- '%LOCALAPPDATA%\pip\cache -> appveyor.yml'

install:
- ps: $env:PATH="$env:PYTHON;$env:PYTHON\Scripts;$env:PATH"
- ps: .ci_tools\appveyor\step-install.ps1

build_script:
- ps: |
& .ci_tools\appveyor\step-build.ps1
if ($env:BUILD_INSTALLER) {
$env:PATH="C:\Program Files (x86)\NSIS;C:\msys2\bin;$env:PATH"
# 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%

bash scripts\windows\build-win-application.sh -d dist\installers
if ($LastExitCode -ne 0) { throw "Last command exited with non-zero code." }
- 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%

bash scripts\windows\build-win-application.sh `
-d installers `
--standalone
if ($LastExitCode -ne 0) { throw "Last command exited with non-zero code." }
}
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
- ps: $env:ORANGE_DEPRECATIONS_ERROR = "1"
- ps: $env:PYTHONWARNINGS = "module"
- ps: |
if ($env:PYTHON -eq "C:\Python34") {
# can only test the .whl build on Python 3.4 32-bit because that
# is the only platform for which built scipy wheels are available
& .ci_tools\appveyor\step-test.ps1
}
if ($env:MINICONDA) {
# Build/test a conda package
& .ci_tools\appveyor\step-test-miniconda.ps1
}
- set ORANGE_DEPRECATIONS_ERROR=1
- set PYTHONWARNINGS=module
- python -m unittest -b -v Orange.tests Orange.widgets.tests
- cd ..\..

artifacts:
- path: dist\*.whl
- path: dist\conda\*
- path: dist\installers\*

0 comments on commit 1695a0a

Please sign in to comment.