-
Notifications
You must be signed in to change notification settings - Fork 14
/
.travis.yml
67 lines (67 loc) · 1.94 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
67
language: cpp
cache:
directories:
env:
global:
# Bluespec
- BLUESPECDIR=$PWD/Bluespec-2016.07.beta1/lib
- PATH=$PATH:$PWD/Bluespec-2016.07.beta1/bin:$PWD/verilator/bin
- LD_LIBRARY_PATH=$PWD/lib
matrix:
- TRAVIS_PROC=RV64G_multicycle TRAVIS_ISA_SIZE=64
- TRAVIS_PROC=RV32IM_3stage TRAVIS_ISA_SIZE=32
before_script:
# get all submodules
- git submodule update --init --recursive
# build riscv-tools
# - mkdir -p $RISCV
# - export CXX=g++-4.8 CC=gcc-4.8
# - cd tools
# - travis_wait 45 ./build.sh
# - cd ..
# download pre-compiled tests
# download and install bluespec
- if [ -d Bluespec-2016.07.beta1 ] ; then echo bluespec cached; else curl http://buildbot.connectal.org/downloads/Bluespec-2016.07.beta1.tar.gz | tar -zxf - ; fi
- mkdir -p lib
- ln -s /usr/lib/x86_64-linux-gnu/libgmp.so.10 lib/libgmp.so.3
# download and install verilator
- curl -L http://www.veripool.org/ftp/verilator-3.888.tgz | tar -zxf - ; cd verilator-3.888/ ; ./configure --prefix=`dirname $PWD`/verilator ; make -j3 ; make install ; cd ..
# download and install ply
- curl http://www.dabeaz.com/ply/ply-3.9.tar.gz | tar -zxf -
- ln -s ../ply-3.9/ply connectal/scripts
- ls -l connectal/scripts/ply
script:
# download pre-compiled tests
- cd tools ; curl http://csg.csail.mit.edu/riscy-e/data/RV${TRAVIS_ISA_SIZE}G.tar.gz | tar -zxf - ; cd ..
- . setup.sh RV${TRAVIS_ISA_SIZE}G
- cd $RISCY_HOME/procs/$TRAVIS_PROC && make verilator && ./runtest.sh 1 0
sudo: no
dist: trusty
os:
- linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
# riscv-tools
- gcc-4.8
- g++-4.8
- gperf
- autoconf
- automake
- autotools-dev
- libmpc-dev
- libmpfr-dev
- libgmp-dev
- gawk
- build-essential
- bison
- flex
- texinfo
# connectal
- python-dev
- python-ply
- libjsoncpp-dev
# bsc
- libgmp10