forked from biolab/orange-widget-base
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
62 lines (47 loc) · 1.52 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
# https://packaging.python.org/en/latest/appveyor/
skip_commits:
files:
- doc/*
- .travis.yml
clone_depth: 30
matrix:
fast_finish: true
environment:
global:
PROJECT_NAME: "orange-widget-base"
PIP_DISABLE_PIP_VERSION_CHECK: "1"
BUILD_DEP: wheel==0.29.0 pip~=19.3.1
TEST_DEP: PyQt5~=5.9.2
matrix:
- PYTHON: C:\Python36-x64
- PYTHON: C:\Python37-x64
TEST_DEP: PyQt5~=5.12.1 PyQtWebEngine~=5.12.1
- PYTHON: C:\Python38-x64
TEST_DEP: "PyQt5~=5.14.0 PyQtWebEngine~=5.14.0 \"pyqtgraph>=0.11a0\""
- PYTHON: C:\Python38-x64
TEST_DEP: "PyQt5~=5.15.0 PyQtWebEngine~=5.15.0 \"pyqtgraph>=0.11a0\""
cache:
- '%LOCALAPPDATA%\pip\cache -> appveyor.yml'
install:
- set "PATH=%PYTHON%;%PYTHON%\Scripts;%PATH%"
- python -m pip install %BUILD_DEP%
- python -m pip --version
- python -m pip list --format=freeze
build_script:
# get the package version
- for /f %%f in ('python setup.py --version') do ( set "VERSION=%%f" )
- python setup.py %BDIST_WHEEL_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~=19.3 wheel
- python -m pip install %TEST_DEP%
- python -m pip install --no-index --no-deps -f ..\..\dist --pre %PROJECT_NAME%==%VERSION%
- python -m pip install %PROJECT_NAME%==%VERSION%
- python -m pip list --format=freeze
- python -m unittest discover -v -b orangewidget
- cd ..\..
artifacts:
- path: dist\*.whl