From 66548b1fe57c9412cc26debd719df5831f6b5bd0 Mon Sep 17 00:00:00 2001 From: whitequark Date: Sat, 26 Oct 2019 02:29:05 +0000 Subject: [PATCH] Travis: set up CI builds and coverage. --- .coveragerc | 13 +++++++++++++ .gitignore | 4 ++++ .travis.yml | 13 +++++++++++++ setup.py | 2 +- 4 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 .coveragerc create mode 100644 .travis.yml diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 0000000..216ca22 --- /dev/null +++ b/.coveragerc @@ -0,0 +1,13 @@ +[run] +branch = True +include = + nmigen_soc/* +omit = + nmigen_soc/test/* + */__init__.py + +[report] +exclude_lines = + :nocov: +partial_branches = + :nobr: diff --git a/.gitignore b/.gitignore index 11fffae..9ccf46a 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,10 @@ /*.egg-info /.eggs +# coverage +/.coverage +/htmlcov + # tests *.vcd *.gtkw diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..7cee1a6 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,13 @@ +dist: xenial +language: python +python: + - "3.6" + - "3.7" +install: + - pip install coverage codecov +script: + - python setup.py develop + - coverage run -m unittest discover + - codecov +matrix: + fast_finish: true diff --git a/setup.py b/setup.py index 016458b..17064cc 100644 --- a/setup.py +++ b/setup.py @@ -23,7 +23,7 @@ setup( #long_description="""TODO""", license="BSD", setup_requires=["setuptools_scm"], - install_requires=["nmigen", "nmigen-stdio"], + install_requires=["nmigen~=0.1.rc1"], packages=find_packages(), project_urls={ "Source Code": "https://github.com/m-labs/nmigen-soc", -- 2.30.2