-
Notifications
You must be signed in to change notification settings - Fork 12
/
.travis.yml
51 lines (46 loc) · 1.12 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
language: python
python:
- "2.7"
before_install:
- sudo apt-get update
- |
sudo apt-get install -y \
autoconf \
automake \
autotools-dev \
curl \
libmpc-dev \
libmpfr-dev \
libgmp-dev gawk \
build-essential \
bison \
flex \
texinfo \
gperf \
libtool \
patchutils \
bc \
zlib1g-dev \
libexpat-dev \
realpath
install:
# Install verilator
- wget https://github.com/cornell-brg/verilator-travisci-cache/raw/master/verilator-travis-4.008.tar.gz
- tar -C ${HOME} -xzf verilator-travis-4.008.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
- pip install --upgrade pip
- pip --version
- pip install --upgrade pytest yapf futures
before_script:
- .travis/fetch-riscv-gnu-toolchain
- export PATH="$TRAVIS_BUILD_DIR/riscv-gnu-toolchain/bin:$PATH"
- tests/core/program/build-riscv-tests
- pip install -e .[test]
- mkdir -p build
- cd build
script:
- py.test ../tests/core/program_test.py -k verilate -v
- ../lizard/format --diff