Skip to content

Commit

Permalink
Merge 5dc2380 into 2b3f8b5
Browse files Browse the repository at this point in the history
  • Loading branch information
sgaist authored Oct 2, 2020
2 parents 2b3f8b5 + 5dc2380 commit 1f9da03
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 16 deletions.
28 changes: 19 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,23 @@
language: python

python: 3.5
env:
- TOXENV=py27
- TOXENV=py33
- TOXENV=py34
- TOXENV=py35
- TOXENV=pep8
- TOXENV=coverage
python: 3.8

cache: pip

matrix:
include:
- python: "3.6"
env: TOXENV=py36
- python: "3.7"
env: TOXENV=py37
- python: "3.8"
env: TOXENV=py38
- python: "3.8"
env: TOXENV=pep8
- python: "3.8"
env: TOXENV=coverage
before_install:
- pip install --upgrade pip setuptools
install:
- pip install tox
- if [ "$TOXENV" = 'coverage' ]; then pip install coveralls; fi
Expand All @@ -23,4 +33,4 @@ deploy:
distributions: "sdist bdist_wheel"
on:
tags: true
condition: $TOXENV = py35
condition: $TOXENV = py37
7 changes: 5 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,16 @@ def get_long_description():
'coverage',
'pytest',
'webtest',
'pyscss'
'pyscss',
'tox'
],
),
classifiers=[
'Intended Audience :: Developers',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Topic :: Software Development :: Libraries :: Python Modules',
'License :: OSI Approved :: BSD License',
]
Expand Down
11 changes: 6 additions & 5 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,21 +1,22 @@
[tox]
envlist = py27,py33,py34,py35,pep8,coverage
envlist = py36,py37,py38,pep8,coverage

[testenv]
deps = -e{toxinidir}[test]

commands = py.test -v {posargs}
commands = pytest -v {posargs}

[testenv:pep8]
basepython = python3.5
basepython = python3.8
deps = flake8
pep8
commands = flake8 more setup.py

[testenv:coverage]
basepython = python3.5
basepython = python3.8
deps = {[testenv]deps}
commands =
coverage run --source more.webassets -m py.test {posargs}
coverage run --source more.webassets -m pytest {posargs}
coverage report -m

[pytest]
Expand Down

0 comments on commit 1f9da03

Please sign in to comment.