From: whitequark Date: Sat, 26 Oct 2019 02:29:05 +0000 (+0000) Subject: Travis: set up CI builds and coverage. X-Git-Tag: 24jan2021_ls180~29 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=66548b1fe57c9412cc26debd719df5831f6b5bd0;p=nmigen-soc.git Travis: set up CI builds and coverage. --- 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",