-
Notifications
You must be signed in to change notification settings - Fork 222
/
.travis.yml
53 lines (37 loc) · 1.51 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
52
#=========================================================================
# 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
- git clone https://github.com/cornell-brg/verilator-travisci-cache.git
- tar xfz verilator-travisci-cache/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
- pip list
#------------------------------------------------------------------------
# before test runner
#------------------------------------------------------------------------
before_script:
# Make build directory
- mkdir -p sim/build
- cd sim/build
#------------------------------------------------------------------------
# test runner
#------------------------------------------------------------------------
script:
- py.test ..