-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
48 lines (37 loc) · 1.5 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#=========================================================================
# TravisCI Setup
#=========================================================================
#------------------------------------------------------------------------
# language and build matrix
#------------------------------------------------------------------------
dist: xenial
language: python
python:
- "3.7"
env:
- CONFIG="-v --tb=short"
#------------------------------------------------------------------------
# install dependencies
#------------------------------------------------------------------------
install:
# Install verilator
- wget https://github.com/cornell-brg/verilator-travisci-cache/raw/master/verilator-travis-4.036.tar.gz
- tar -C ${HOME} -xzf verilator-travis-4.036.tar.gz
- export VERILATOR_ROOT=${HOME}/verilator
- export PATH=${VERILATOR_ROOT}/bin:${PATH}
- export PYMTL_VERILATOR_INCLUDE_DIR=${VERILATOR_ROOT}/share/verilator/include
- verilator --version
# Install PyMTL3
- pip install -U git+https://github.com/pymtl/pymtl3.git@master --constraint constraints.txt
- pip list
#------------------------------------------------------------------------
# test runner
#------------------------------------------------------------------------
script:
- mkdir -p build
- cd build
- py.test ../ $CONFIG
- py.test ../ $CONFIG --test-verilog
#-------------------------------------------------------------------------
# after success
#-------------------------------------------------------------------------