Skip to content

Commit 66548b1

Browse files
committed
Travis: set up CI builds and coverage.
1 parent 8a54b57 commit 66548b1

File tree

4 files changed

+31
-1
lines changed

4 files changed

+31
-1
lines changed

.coveragerc

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[run]
2+
branch = True
3+
include =
4+
nmigen_soc/*
5+
omit =
6+
nmigen_soc/test/*
7+
*/__init__.py
8+
9+
[report]
10+
exclude_lines =
11+
:nocov:
12+
partial_branches =
13+
:nobr:

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
/*.egg-info
44
/.eggs
55

6+
# coverage
7+
/.coverage
8+
/htmlcov
9+
610
# tests
711
*.vcd
812
*.gtkw

.travis.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
dist: xenial
2+
language: python
3+
python:
4+
- "3.6"
5+
- "3.7"
6+
install:
7+
- pip install coverage codecov
8+
script:
9+
- python setup.py develop
10+
- coverage run -m unittest discover
11+
- codecov
12+
matrix:
13+
fast_finish: true

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def local_scheme(version):
2323
#long_description="""TODO""",
2424
license="BSD",
2525
setup_requires=["setuptools_scm"],
26-
install_requires=["nmigen", "nmigen-stdio"],
26+
install_requires=["nmigen~=0.1.rc1"],
2727
packages=find_packages(),
2828
project_urls={
2929
"Source Code": "https://github.com/m-labs/nmigen-soc",

0 commit comments

Comments
 (0)