Travis: set up CI builds and coverage.
authorwhitequark <whitequark@whitequark.org>
Sat, 26 Oct 2019 02:29:05 +0000 (02:29 +0000)
committerwhitequark <whitequark@whitequark.org>
Sat, 26 Oct 2019 02:34:01 +0000 (02:34 +0000)
.coveragerc [new file with mode: 0644]
.gitignore
.travis.yml [new file with mode: 0644]
setup.py

diff --git a/.coveragerc b/.coveragerc
new file mode 100644 (file)
index 0000000..216ca22
--- /dev/null
@@ -0,0 +1,13 @@
+[run]
+branch = True
+include =
+  nmigen_soc/*
+omit =
+  nmigen_soc/test/*
+  */__init__.py
+
+[report]
+exclude_lines =
+  :nocov:
+partial_branches =
+  :nobr:
index 11fffae198762340e79072c1efffba4bef1e6df2..9ccf46a2ff49b7623558b629504502afdbc54004 100644 (file)
@@ -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 (file)
index 0000000..7cee1a6
--- /dev/null
@@ -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
index 016458bd514e9db4597a8c2557ac203d44aeaede..17064cc5339d6fd25baf0441727af9677cdbd2f9 100644 (file)
--- 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",