-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
66 lines (50 loc) · 2.16 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#=========================================================================
# 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:
- "3.7"
#------------------------------------------------------------------------
# test matrix
#------------------------------------------------------------------------
# For the labs, we run all of the tests using the PyMTL RTL
# implementations, and then we run all of the tests with the Verilog RTL
# implementations.
env:
- TEST_DIRS=".." RTL_LANGUAGE="--prtl"
- TEST_DIRS=".." RTL_LANGUAGE="--prtl --test-verilog"
- TEST_DIRS=".." RTL_LANGUAGE="--vrtl"
- TEST_DIRS=".." RTL_LANGUAGE="--vrtl --test-verilog"
#------------------------------------------------------------------------
# install dependencies
#------------------------------------------------------------------------
install:
# Install verilator
- wget https://github.com/cornell-brg/verilator-travisci-cache/raw/master/verilator-travis-4.026.tar.gz
- tar -C ${HOME} -xzf verilator-travis-4.026.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 PyMTL
- pip install -U pip
- pip install -U hypothesis
- pip install -U git+https://github.com/cornell-brg/pymtl3.git@spring20-ece5745
- pip list
#------------------------------------------------------------------------
# before test runner
#------------------------------------------------------------------------
before_script:
# Make build directory
- mkdir -p sim/build
- cd sim/build
#------------------------------------------------------------------------
# test runner
#------------------------------------------------------------------------
script:
- py.test ${TEST_DIRS} ${RTL_LANGUAGE} --verbose