Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
language: python
python:
- 2.7
- 3.4
env:
- EXE_TRAVIS=1
cache: apt
before_install:
- sudo apt-get install iverilog
- sudo apt-get install graphviz
- pip install pygraphviz jinja2
before_script:
- pip freeze
script:
# - export EXE_TRAVIS=1
- make
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
.PHONY: all
all:
export PYTHON=python3
export PYTHON27=python2.7
make -C ./pyverilog

.PHONY: clean
Expand Down
6 changes: 5 additions & 1 deletion pyverilog/ast_code_generator/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
PYTHON=python3
ifndef EXE_TRAVIS
PYTHON=python3
else
PYTHON=python
endif
#OPT=-m pdb
#OPT=-m cProfile -s time
#OPT=-m cProfile -o profile.rslt
Expand Down
5 changes: 5 additions & 0 deletions pyverilog/controlflow/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
ifndef EXE_TRAVIS
PYTHON=python3
else
PYTHON=python
endif
PYTHON=python3
#PYTHON=python2.7
#OPT=-m pdb
Expand Down
17 changes: 14 additions & 3 deletions pyverilog/dataflow/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
PYTHON=python3
ifndef EXE_TRAVIS
PYTHON=python3
else
PYTHON=python
endif
#PYTHON=python2.7
PYTHON27=python2.7
#OPT=-m pdb
Expand Down Expand Up @@ -42,11 +46,18 @@ subset:

.PHONY: codegen
codegen:
$(PYTHON) $(OPT) $(CODEGEN) $(SRCS) $(TOP) $(TARGETS) $(CODEGEN_OPT)
$(PYTHON) $(OPT) $(CODEGEN) $(SRCS) $(TOP) $(TARGETS) $(CODEGEN_OPT)

.PHONY: graphgen
graphgen:
$(PYTHON27) $(OPT) $(GRAPHGEN) $(SRCS) $(TOP) $(TARGETS) $(GRAPHGEN_OPT)
ifdef EXE_TRAVIS
ifdef EXE_GRAPHGEN
python --version
$(PYTHON) $(OPT) $(GRAPHGEN) $(SRCS) $(TOP) $(TARGETS) $(GRAPHGEN_OPT)
endif
else
$(PYTHON27) $(OPT) $(GRAPHGEN) $(SRCS) $(TOP) $(TARGETS) $(GRAPHGEN_OPT)
endif

.PHONY: clean
clean:
Expand Down
Loading