forked from userzimmermann/zcons
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
100 lines (81 loc) · 2.13 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
90
91
92
93
94
95
96
97
98
99
100
environment:
matrix:
-
PY: C:\Python27\python.exe
SCONS: SCons==3.0.1
-
PY: C:\Python27\python.exe
-
PY: C:\Python27-x64\python.exe
SCONS: SCons==3.0.1
-
PY: C:\Python27-x64\python.exe
-
PY: C:\Python35\python.exe
SCONS: SCons==3.0.1
-
PY: C:\Python35\python.exe
-
PY: C:\Python35-x64\python.exe
SCONS: SCons==3.0.1
-
PY: C:\Python35-x64\python.exe
-
PY: C:\Python36\python.exe
SCONS: SCons==3.0.1
-
PY: C:\Python36\python.exe
-
PY: C:\Python36-x64\python.exe
SCONS: SCons==3.0.1
-
PY: C:\Python36-x64\python.exe
-
PY: C:\Python37\python.exe
SCONS: SCons==3.0.1
-
PY: C:\Python37\python.exe
-
PY: C:\Python37-x64\python.exe
SCONS: SCons==3.0.1
-
PY: C:\Python37-x64\python.exe
build: off
install:
- cmd: |
%PY% -m pip install -U pip setuptools six wheel
%PY% -m pip install -U -e .
rem %PY% -m pip install -U tox
test_script:
- cmd: |
if defined SCONS ( %PY% -m pip install %SCONS% )
- ps: |
$test = @"
import os
import zcons
import SCons
assert zcons.SCONS.version == SCons.__version__
SCONS = os.environ.get('SCONS')
if not SCONS:
assert (
__import__('zetup.version').version.Version(
SCons.__version__
) >= '3.0.3')
else:
assert SCONS == 'SCons==3.0.1'
assert (
__import__('zetup.version').version.Version(
SCons.__version__
) == '3.0.1')
"@
$test | Out-File test-script.py -Encoding utf8
& cmd /c "%PY% test-script.py 2>&1"
- cmd: |
rem %PY% -m tox -r -v
- cmd: |
%PY% -m pip uninstall --yes zcons
%PY% -m pip install zetup[all]
%PY% -m zetup install
rem %PY% -m zetup pytest
%PY% -m zetup sdist
rem %PY% -m zetup tox