New files for tox, first try, working locally

This commit is contained in:
Daniel Pizetta 2018-11-08 15:02:23 -02:00
parent 78c7b7ef7f
commit 9d58cb58a3
4 changed files with 84 additions and 20 deletions

16
.gitignore vendored
View File

@ -1,18 +1,18 @@
*.pyc
/style.rcc
/style_pyside_rc.py
./.idea
/.idea/
dist/
docs/
QDarkStyle.egg-info/
build/
docs/
*.egg-info/
__pycache__
*.tar
*.tar.*
*.log
*.log.*
*.sig
pkg/
src/
@ -32,4 +32,6 @@ deb_dist
.mypy_cache
.cache
.env
./.idea
/.idea/
.tox

View File

@ -1,15 +1,16 @@
language: python
python:
- "2.7"
- "3.4"
virtualenv:
system_site_packages: true
before_install:
- sudo apt-get update
- sudo apt-get install -qq python-pyside --fix-missing
- sudo apt-get install -qq python-qt4 --fix-missing
- sudo apt-get install -qq python3-pyside --fix-missing
- sudo apt-get install -qq python3-pyqt4 --fix-missing
anguage: python
matrix:
include:
- python: 2.7
env: TOXENV=py27
- python: 3.4
env: TOXENV=py34
- python: 3.6
env: TOXENV=py36
install:
- pip install tox
script:
- tox
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
before_script:

View File

@ -1 +0,0 @@
/*.pyc

62
tox.ini Normal file
View File

@ -0,0 +1,62 @@
[tox]
envlist =
#{win,lin,mac}-{py34}-{pyqt,pyside}
{win,lin,mac}-{py36}-{pyqt5,pyside2}
skip_missing_interpreters =
true
[testenv]
platform =
# platforms to run
win: windows
lin: linux
mac: osx
deps =
# to make sure it has
setuptools
pip
wheel
virtualenv
qtpy
pytest
pytest-qt
# basic dependencies for each env
pyqt: pyqt
pyqt5: pyqt5
pyside: pyside
pyside2: pyside2
whitelist_externals =
# non python dependencies
qmake
doc: make
doc: latexpdf
changedir =
script
commands =
python process_ui.py
python process_qrc.py
pip install ../.
python -m qdarkstyle --all
pyqt: python ../example/example.py --qt_from=pyqt --test
pyqt: python ../example/example.py --qt_from=pyqt --test --no_dark
pyqt5: python ../example/example.py --qt_from=pyqt5 --test
pyqt5: python ../example/example.py --qt_from=pyqt5 --test --no_dark
pyside: python ../example/example.py --qt_from=pyside --test
pyside: python ../example/example.py --qt_from=pyside --test --no_dark
pyside2: python ../example/example.py --qt_from=pyside2 --test
pyside2: python ../example/example.py --qt_from=pyside2 --test --no_dark
usedevelop =
develop: true