Skip to content

Commit

Permalink
travis ci
Browse files Browse the repository at this point in the history
  • Loading branch information
shtaxxx committed Nov 23, 2015
1 parent 257e6e8 commit 178c51b
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 4 deletions.
13 changes: 13 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
language: python

python:
- 2.7
- 3.4
- 3.5

install:
- sudo apt-get install iverilog
- pip install pytest pytest-pythonpath

script:
- python -m pytest .
12 changes: 11 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,19 @@
PYTHON=python3
#PYTHON=python

.PHONY: all
all: clean

.PHONY: test
test:
$(PYTHON) -m pytest -vv

.PHONY: clean
clean:
make clean -C ./pyverilog
make clean -C ./examples
make clean -C ./tests
rm -rf *.pyc __pycache__ *.out parsetab.py pyverilog.egg-info build dist
rm -rf *.egg-info build dist *.pyc __pycache__ parsetab.py .cache tmp.v uut.vcd *.out *.png *.dot

.PHONY: release
release:
Expand Down
2 changes: 2 additions & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[pytest]
python_paths = ./
2 changes: 1 addition & 1 deletion tests/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ test:

.PHONY: clean
clean:
rm -rf *.pyc __pycache__ parsetab.py *.out .cache
rm -rf *.pyc __pycache__ parsetab.py *.out .cache tmp.v uut.vcd *.png *.dot
find . -maxdepth 1 -type d |grep "./" | xargs -I {} make clean -C {}
2 changes: 0 additions & 2 deletions tests/pytest.ini

This file was deleted.

0 comments on commit 178c51b

Please sign in to comment.