forked from csail-csg/riscy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
69 lines (69 loc) · 1.79 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
68
69
language: cpp
cache:
directories:
env:
global:
# Bluespec
- BLUESPECDIR=$PWD/Bluespec-2016.07.beta1/lib
- PATH=$PATH:$PWD/Bluespec-2016.07.beta1/bin
- LD_LIBRARY_PATH=$PWD/lib
# Riscy
- RISCY_HOME=$PWD
- RISCY_TOOLS=$RISCY_HOME/riscv
- RISCV=$RISCY_TOOLS
- PATH=$RISCY_TOOLS/bin:$PATH
- LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$RISCY_TOOLS/lib
matrix:
- TRAVIS_PROC=RV64G_multicycle TRAVIS_TARGET=bluesim
- TRAVIS_PROC=RV64G_multicycle_split TRAVIS_TARGET=bluesim
- TRAVIS_PROC=RV32I_multicycle TRAVIS_TARGET=bluesim
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 and install bluespec
- if [ -d Bluespec-2016.07.beta1 ] ; then echo bluespec cached; else curl http://buildbot.connectal.org/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 ply
- pip install -t connectal/scripts ply
- ls -l connectal/scripts/ply
script:
- ls Bluespec-2016.07.beta1
- export PYTHONPATH=$PWD/scripts; cd $RISCY_HOME/procs/$TRAVIS_PROC && make build.$TRAVIS_TARGET && make isatest.$TRAVIS_TARGET
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-pip
- python-ply
- libjsoncpp-dev
# bsc
- libgmp10