Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve CI / testing #754

Merged
merged 7 commits into from
Nov 16, 2018
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 13 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
dist: xenial
sudo: false
language: python

Expand All @@ -7,39 +8,42 @@ matrix:
env: TOXENV=py27
- python: '3.4'
env: TOXENV=py34
dist: trusty
- python: '3.5'
env: TOXENV=py35
- python: '3.6'
env: TOXENV=py36
- python: '3.7'
env: TOXENV=py37
dist: xenial
sudo: true
- python: 'pypy'
env: TOXENV=pypy
dist: trusty
- python: 'pypy3'
env: TOXENV=pypy3
dist: trusty
- env: TOXENV=flake8
- env: TOXENV=checkspelling
waylan marked this conversation as resolved.
Show resolved Hide resolved
addons:
apt:
packages:
- aspell
- aspell-en

addons:
apt:
packages:
- libtidy-0.99-0
- aspell
- aspell-en

install:
- pip install 'setuptools>=36'
- pip install tox
- pip install 'coverage<4.0'
- pip install codecov
# NOTE: setuptools needs to be installed explicitly for py34 (trusty).
- pip install 'setuptools>=36' tox

script:
- tox

after_success:
- codecov
- pip install codecov
- codecov --flags "$TOXENV"

branches:
only:
Expand Down
6 changes: 6 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,12 @@
packages=['markdown', 'markdown.extensions'],
python_requires='>=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*',
install_requires=['setuptools >= 36'],
extras_require={
'testing': [
'coverage<5.0',
waylan marked this conversation as resolved.
Show resolved Hide resolved
'pyyaml',
],
},
entry_points={
'console_scripts': [
'%s = markdown.__main__:run' % SCRIPT_NAME,
Expand Down
5 changes: 0 additions & 5 deletions test-requirements.txt

This file was deleted.

6 changes: 2 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,8 @@ requires = setuptools>=36
isolated_build = True

[testenv]
deps =
coverage<4.0
pyyaml
pytidylib
extras = testing
deps = pytidylib
commands = coverage run --source=markdown -m unittest discover {toxinidir}/tests
coverage report --show-missing

Expand Down