Skip to content

Commit 178c51b

Browse files
committed
travis ci
1 parent 257e6e8 commit 178c51b

File tree

5 files changed

+27
-4
lines changed

5 files changed

+27
-4
lines changed

.travis.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
language: python
2+
3+
python:
4+
- 2.7
5+
- 3.4
6+
- 3.5
7+
8+
install:
9+
- sudo apt-get install iverilog
10+
- pip install pytest pytest-pythonpath
11+
12+
script:
13+
- python -m pytest .

Makefile

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,19 @@
1+
PYTHON=python3
2+
#PYTHON=python
3+
4+
.PHONY: all
5+
all: clean
6+
7+
.PHONY: test
8+
test:
9+
$(PYTHON) -m pytest -vv
10+
111
.PHONY: clean
212
clean:
313
make clean -C ./pyverilog
414
make clean -C ./examples
515
make clean -C ./tests
6-
rm -rf *.pyc __pycache__ *.out parsetab.py pyverilog.egg-info build dist
16+
rm -rf *.egg-info build dist *.pyc __pycache__ parsetab.py .cache tmp.v uut.vcd *.out *.png *.dot
717

818
.PHONY: release
919
release:

pytest.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[pytest]
2+
python_paths = ./

tests/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ test:
1010

1111
.PHONY: clean
1212
clean:
13-
rm -rf *.pyc __pycache__ parsetab.py *.out .cache
13+
rm -rf *.pyc __pycache__ parsetab.py *.out .cache tmp.v uut.vcd *.png *.dot
1414
find . -maxdepth 1 -type d |grep "./" | xargs -I {} make clean -C {}

tests/pytest.ini

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)