1
0
rocket-chip/.travis.yml

83 lines
2.1 KiB
YAML
Raw Normal View History

2015-08-25 22:29:20 +02:00
language: scala
# run on new infrastructure
sudo: false
cache: apt
# packages needed to build riscv-tools
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-4.8
- g++-4.8
- gperf
- autoconf
- automake
- autotools-dev
- libmpc-dev
- libmpfr-dev
- libgmp-dev
- gawk
- build-essential
- bison
- flex
- texinfo
env:
global:
- RISCV="/home/travis/riscv_install"
- PATH=$PATH:$RISCV/bin
matrix:
- VCONFIG=DefaultVLSIConfig FCONFIG=DefaultFPGAConfig ECONFIG=DefaultCPPConfig
- VCONFIG=RoccExampleConfig FCONFIG=RoccExampleConfig ECONFIG=RoccExampleConfig
2016-02-02 22:30:14 +01:00
- VCONFIG=DmaControllerConfig FCONFIG=DmaControllerFPGAConfig ECONFIG=DmaControllerConfig
2016-02-20 01:05:15 +01:00
- VCONFIG=MemtestConfig FCONFIG=MemtestConfig ECONFIG=MemtestConfig
- VCONFIG=MemtestL2Config FCONFIG=MemtestL2Config ECONFIG=MemtestL2Config
- VCONFIG=OneOrEightChannelBenchmarkConfig FCONFIG=OneOrEightChannelBenchmarkConfig ECONFIG=OneOrEightChannelBenchmarkConfig
2015-08-25 22:29:20 +02:00
2015-09-09 00:13:38 +02:00
# blacklist private branches
branches:
except:
- hwacha
- boom
- hurricane
2015-08-25 22:29:20 +02:00
before_install:
# make install destination
- mkdir -p $RISCV
# don't do travis on riscv-tools
- rm riscv-tools/.travis.yml
# pull in needed repos from riscv-tools (travis isn't recursive)
- cd riscv-tools
- git submodule update --init riscv-fesvr
- git submodule update --init riscv-gnu-toolchain
- git submodule update --init riscv-tests
- cd riscv-tests
- git submodule update --init
- cd ../..
# use recently installed gcc
- export CXX=g++-4.8 CC=gcc-4.8
script:
# test verilog
- cd vsim
- make CONFIG=$VCONFIG verilog
2015-08-25 22:29:20 +02:00
- cd ../fsim
- make CONFIG=$FCONFIG verilog
2015-08-25 22:29:20 +02:00
# build riscv-fesvr
- cd ../riscv-tools/riscv-fesvr
- mkdir build
- cd build
- ../configure --prefix=$RISCV
- make install
# build emulator
- cd ../../../emulator
- make -j 8 CONFIG=$ECONFIG
2015-08-25 22:29:20 +02:00
# build riscv-gcc
- cd ../riscv-tools/riscv-gnu-toolchain
- ./configure --prefix=$RISCV
- make -j 8 > build.gcc.out
# run riscv-tests
- cd ../../emulator
2016-02-20 01:05:15 +01:00
- make -j 8 CONFIG=$ECONFIG run