Skip to content

Commit

Permalink
update appveyor and travis for PySide2/6 and PyQt5/6
Browse files Browse the repository at this point in the history
  • Loading branch information
jborbely committed Jan 14, 2021
1 parent e8af93a commit d0e2dd0
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 13 deletions.
32 changes: 27 additions & 5 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,39 +3,61 @@ image: Visual Studio 2019
environment:
matrix:
- PYTHON: C:\Python35
BINDING: PyQt5
- PYTHON: C:\Python35-x64
BINDING: PySide2
- PYTHON: C:\Python36
BINDING: PyQt6
- PYTHON: C:\Python36-x64
BINDING: PySide6
- PYTHON: C:\Python37
BINDING: PyQt6
- PYTHON: C:\Python37-x64
BINDING: PySide6
- PYTHON: C:\Python38
BINDING: PyQt6
- PYTHON: C:\Python38-x64
BINDING: PySide6
- PYTHON: C:\Python39
CLONE_PYTHONNET: "true"
- PYTHON: C:\Python39-x64
CLONE_PYTHONNET: "true"
- PYTHON: C:\Python39-x64
CLONE_PYTHONNET: "true"
BINDING: PySide6
- PYTHON: C:\Python39-x64
CLONE_PYTHONNET: "true"
BINDING: PyQt6
- PYTHON: C:\Python39-x64
CLONE_PYTHONNET: "true"
BINDING: PySide2
- PYTHON: C:\Python39-x64
CLONE_PYTHONNET: "true"
BINDING: PyQt5

install:
- set PATH=%PYTHON%;%PYTHON%\Scripts;%PATH%
- python --version
- python -m pip install --upgrade pip
- python -m pip install --upgrade setuptools wheel
- python -m pip install --upgrade PySide2 pytest pytest-cov pytest-runner
- python -m pip install --upgrade pytest pytest-cov pytest-runner
- python -m pip install %BINDING%
- IF "%CLONE_PYTHONNET%"=="true" (
python -m pip install pycparser &&
python -m pip install --upgrade pycparser &&
python -m pip install git+https://github.com/pythonnet/pythonnet.git
) ELSE (
python -m pip install --upgrade pythonnet
)
- python -m pip list
- python -c "from PySide2.QtWidgets import QApplication; QApplication([])"
- python -c "from msl import qt; print(qt.binding)"

build: off

test_script:
- python setup.py tests
- python -m pytest

after_test:
- python setup.py sdist bdist_wheel

artifacts:
# bdist_wheel puts your built wheel in the dist directory
- path: dist\*
31 changes: 23 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,29 +9,43 @@ jobs:
include:
- os: linux
python: 3.5
env: BINDING=PySide2
- os: linux
python: 3.6
env: BINDING=PySide6
- os: linux
python: 3.7
env: BINDING=PySide6
- os: linux
python: 3.8
env: BINDING=PySide6
- os: linux
python: 3.9
env: BINDING=PySide6
- os: linux
python: 3.9
env: BINDING=PySide2
- os: linux
python: 3.9
env: BINDING=PyQt6
- os: linux
python: 3.9
env: BINDING=PyQt5
- os: osx
language: shell
env: PYTHON=3.5.10
env: PYTHON=3.5.10 BINDING=PySide2
- os: osx
language: shell
env: PYTHON=3.6.12
env: PYTHON=3.6.12 BINDING=PySide6
- os: osx
language: shell
env: PYTHON=3.7.9
env: PYTHON=3.7.9 BINDING=PySide6
- os: osx
language: shell
env: PYTHON=3.8.6
env: PYTHON=3.8.6 BINDING=PySide6
- os: osx
language: shell
env: PYTHON=3.9.0
env: PYTHON=3.9.0 BINDING=PySide6

before_install:
- |
Expand Down Expand Up @@ -59,7 +73,8 @@ install:
- python --version
- python -m pip install --upgrade pip
- python -m pip install --upgrade setuptools wheel
- python -m pip install --upgrade PySide2 pytest pytest-cov pytest-runner
- python -m pip install --upgrade pytest pytest-cov pytest-runner
- python -m pip install --upgrade $BINDING
- python -m pip list

before_script:
Expand All @@ -68,7 +83,7 @@ before_script:
herbstluftwm &
sleep 1
fi
- python -c "from PySide2.QtWidgets import QApplication; QApplication([])"
- python -c "from msl import qt; print(qt.binding)"

script:
- python setup.py tests
- python -m pytest

0 comments on commit d0e2dd0

Please sign in to comment.