Skip to content

Commit 80c0b4f

Browse files
authored
Merge pull request #28 from vtitor/master
Fix appveyor
2 parents d62fc64 + 8880f5b commit 80c0b4f

File tree

3 files changed

+16
-25
lines changed

3 files changed

+16
-25
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ addons:
1515

1616
install:
1717
- pip install tox
18-
- export TOX_ENV=`tox --listenvs | grep "py${TRAVIS_PYTHON_VERSION/./}" | tr '\n' ','`
18+
- export TOX_ENV=`tox --listenvs | grep -v win | grep "py${TRAVIS_PYTHON_VERSION/./}" | tr '\n' ','`
1919

2020
script: tox -e $TOX_ENV

appveyor.yml

Lines changed: 8 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,51 +2,38 @@ environment:
22
VENV: "%APPVEYOR_BUILD_FOLDER%\\venv"
33

44
matrix:
5-
- TOXENV: py27
5+
- TOXENV: py27-defaultreactor
66
PYTHON: "C:\\Python27"
77

8-
- TOXENV: py27
8+
- TOXENV: py27-defaultreactor
99
PYTHON: "C:\\Python27-x64"
1010

11-
- TOXENV: py34
11+
- TOXENV: py34-defaultreactor
1212
PYTHON: "C:\\Python34"
1313

14-
- TOXENV: py34
14+
- TOXENV: py34-defaultreactor
1515
PYTHON: "C:\\Python34-x64"
1616

17-
- TOXENV: py35
17+
- TOXENV: py35-defaultreactor, win-py35-qt5reactor
1818
PYTHON: "C:\\Python35"
1919

20-
- TOXENV: py35
20+
- TOXENV: py35-defaultreactor, win-py35-qt5reactor
2121
PYTHON: "C:\\Python35-x64"
2222

23-
- TOXENV: py36
23+
- TOXENV: py36-defaultreactor, win-py36-qt5reactor
2424
PYTHON: "C:\\Python36"
2525

26-
- TOXENV: py36
26+
- TOXENV: py36-defaultreactor, win-py36-qt5reactor
2727
PYTHON: "C:\\Python36-x64"
2828

29-
# https://www.appveyor.com/docs/how-to/rdp-to-build-worker/
30-
init:
31-
- ps: if (Get-ChildItem Env:ENABLE_RDP -ErrorAction SilentlyContinue) {iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))} else {echo RDP not enabled}
32-
- echo "TOXENV- %TOXENV%"
33-
3429
install:
3530
# https://github.com/pypa/virtualenv/issues/1050
3631
- pip install -U git+https://github.com/pypa/virtualenv@e8163e83a92c9098f51d390289323232ece15e3b
3732
- virtualenv -p "%PYTHON%\\python.exe" "%VENV%"
3833
- "%VENV%\\Scripts\\activate"
39-
# https://github.com/pypa/virtualenv/issues/1050
40-
- pip install git+https://github.com/pypa/virtualenv@e8163e83a92c9098f51d390289323232ece15e3b
4134
- pip install tox
4235

4336
build: off
4437

4538
test_script:
46-
- where tox
47-
- tox --version
4839
- tox
49-
50-
# https://www.appveyor.com/docs/how-to/rdp-to-build-worker/
51-
on_finish:
52-
- ps: if (Get-ChildItem Env:ENABLE_RDP -ErrorAction SilentlyContinue) {$blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))} else {echo RDP not enabled}

tox.ini

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
envlist=
33
py{27,34}-defaultreactor
44
py{35,36}-{default,qt5}reactor
5+
win-py{35,36}-qt5reactor
56
linting
67

7-
88
[testenv]
99
deps=
1010
greenlet
@@ -14,9 +14,10 @@ deps=
1414
qt5reactor: qt5reactor
1515
qt5reactor: pytest-xvfb
1616
qt5reactor: pyqt5
17+
win: pywin32
1718
commands=
18-
defaultreactor: py.test --reactor=default []
19-
qt5reactor: py.test --reactor=qt5reactor []
19+
defaultreactor: py.test --reactor=default
20+
qt5reactor: py.test --reactor=qt5reactor
2021
sitepackages=False
2122

2223
[testenv:linting]
@@ -25,3 +26,6 @@ commands=flake8 *.py testing
2526

2627
[flake8]
2728
ignore=N802
29+
30+
[pytest]
31+
addopts=-v

0 commit comments

Comments
 (0)