edd0b3b824
We want to add support for caching riscv-tools builds on Travis and the easiest way to do so looks like to jus go ahead and use
56 lines
1.3 KiB
YAML
56 lines
1.3 KiB
YAML
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:
|
|
matrix:
|
|
- CONFIG=DefaultCPPConfig
|
|
- CONFIG=RoccExampleConfig
|
|
- CONFIG=DmaControllerConfig
|
|
- CONFIG=MemtestConfig
|
|
- CONFIG=MemtestL2Config
|
|
- CONFIG=BroadcastRegressionTestConfig
|
|
- CONFIG=CacheRegressionTestConfig
|
|
|
|
# blacklist private branches
|
|
branches:
|
|
except:
|
|
- hwacha
|
|
- boom
|
|
- hurricane
|
|
|
|
before_install:
|
|
- rm riscv-tools/.travis.yml
|
|
- export CXX=g++-4.8 CC=gcc-4.8
|
|
|
|
script:
|
|
- make vsim-verilog -C regression CONFIG=$CONFIG TORTURE_CONFIG=default
|
|
- make fsim-verilog -C regression CONFIG=$CONFIG TORTURE_CONFIG=default
|
|
- make emulator-ndebug -C regression CONFIG=$CONFIG TORTURE_CONFIG=default
|
|
- make emulator-asm-tests -C regression CONFIG=$CONFIG TORTURE_CONFIG=default
|
|
- make emulator-bmark-tests -C regression CONFIG=$CONFIG TORTURE_CONFIG=default -j1
|
|
|
|
before_cache:
|
|
- ls -tr regression/install | tail -n+2 | sed s@^@regression/install/@ | xargs rm -rf
|