-
Notifications
You must be signed in to change notification settings - Fork 100
/
.travis.yml
52 lines (36 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
49
50
51
#=========================================================================
# Travis CI Configuration
#=========================================================================
# This file configures Travis CI to automatically run the test for this
# PyMTL project everytime we do a commit to GitHub.
#------------------------------------------------------------------------
# VM setup
#------------------------------------------------------------------------
language: python
python:
- "2.7"
#------------------------------------------------------------------------
# install dependencies
#------------------------------------------------------------------------
install:
# Install verilator
- wget --quiet http://brg.csl.cornell.edu/artifacts/verilator-travis-3.876.tar.gz
- tar xfz verilator-travis-3.876.tar.gz
- export VERILATOR_ROOT=${PWD}/verilator-3.876
- export PATH=${VERILATOR_ROOT}/bin:$PATH
- export PYMTL_VERILATOR_INCLUDE_DIR=${VERILATOR_ROOT}/include
- verilator --version
# Install PyMTL
- pip -q install git+https://github.com/cornell-brg/pymtl.git
#------------------------------------------------------------------------
# before test runner
#------------------------------------------------------------------------
before_script:
# Make build directory
- mkdir -p sim/build
- cd sim/build
#------------------------------------------------------------------------
# test runner
#------------------------------------------------------------------------
script:
- py.test .. --tb=no -r Ew