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 *.pyc
/style.rcc
/style_pyside_rc.py
./.idea
/.idea/
dist/ dist/
docs/
QDarkStyle.egg-info/
build/ build/
docs/
*.egg-info/
__pycache__ __pycache__
*.tar *.tar
*.tar.* *.tar.*
*.log *.log
*.log.* *.log.*
*.sig *.sig
pkg/ pkg/
src/ src/
@ -32,4 +32,6 @@ deb_dist
.mypy_cache .mypy_cache
.cache .cache
.env .env
./.idea
/.idea/
.tox

View File

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