Skip to content
Snippets Groups Projects
Commit 7f80b027 authored by Matt Traudt's avatar Matt Traudt Committed by Matt Traudt
Browse files

Add first go at .travis.yml

parent a860398f
No related branches found
No related tags found
No related merge requests found
sudo: false
language: python
python:
- "3.4"
- "3.5"
- "3.6"
install: pip install tox-travis
script: tox
......@@ -8,8 +8,10 @@ import os
here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read()
# Causes the lint Travis builds to fail for some reason, so just going to
# remove the long description for now.
# with open(os.path.join(here, 'README.md'), encoding='utf-8') as f:
# long_description = f.read()
def get_package_data():
......@@ -42,7 +44,7 @@ setup(
name='sbws',
version=find_version(),
description='Simple Bandwidth Scanner',
long_description=long_description,
# long_description=long_description,
author='Matt Traudt',
author_email='pastly@torproject.org',
license='CC0',
......@@ -61,7 +63,7 @@ setup(
},
data_files=get_data_files(),
keywords='',
python_requires='>=3.5',
python_requires='>=3.4',
# test_suite='test',
entry_points={
'console_scripts': [
......
[tox]
envlist = clean, lint, py35, stats
envlist = clean, lint, py34, py35, py36, stats
[travis]
python =
3.4: lint, py34
[testenv:clean]
skip_install = True
......@@ -27,10 +31,13 @@ commands=
coverage html
[testenv]
# passenv = TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH
deps = .[test]
commands =
coverage run --rcfile={toxinidir}/.coveragerc --source=sbws -m pytest -s {toxinidir}/tests
passenv =
TRAVIS
TRAVIS_JOB_ID
TRAVIS_BRANCH
[testenv:doc]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment