-
Notifications
You must be signed in to change notification settings - Fork 7
/
.travis.yml
141 lines (126 loc) · 3.53 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
language: cpp
# run on new infrastructure
sudo: false
cache:
apt: true
directories:
$RISCV
timeout: 1000
# required packages to install
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- sourceline: 'deb http://download.opensuse.org/repositories/home:/phiwag:/edatools/xUbuntu_16.04 /'
key_url: 'https://download.opensuse.org/repositories/home:phiwag:edatools/xUbuntu_16.04/Release.key'
packages:
- gcc-7
- g++-7
- gperf
- autoconf
- automake
- autotools-dev
- libmpc-dev
- libmpfr-dev
- libgmp-dev
- gawk
- build-essential
- bison
- flex
- texinfo
- python-pexpect
- libusb-1.0-0-dev
- default-jdk
- zlib1g-dev
- valgrind
- verilator-4.040
- device-tree-compiler
env:
global:
- RISCV="/home/travis/riscv_install"
branches:
only:
- master
- ariane-dev
before_install:
- export CXX=g++-7 CC=gcc-7
# setup dependent paths
- export PATH=$RISCV/bin:/bin:$PATH
- export LIBRARY_PATH=$RISCV/lib
- export LD_LIBRARY_PATH=$RISCV/lib
- export C_INCLUDE_PATH=$RISCV/include
- export CPLUS_INCLUDE_PATH=$RISCV/include
# number of parallel jobs to use for make commands and simulation
- export NUM_JOBS=4
- ci/make-tmp.sh
- git submodule update --init --recursive
- mkdir -p $RISCV
- wget https://static.dev.sifive.com/dev-tools/riscv64-unknown-elf-gcc-8.3.0-2020.04.0-x86_64-linux-ubuntu14.tar.gz
- tar -x -f riscv64-unknown-elf-gcc-8.3.0-2020.04.0-x86_64-linux-ubuntu14.tar.gz --strip-components=1 -C $RISCV
- ci/install-fesvr.sh
stages:
- test
jobs:
include:
- stage: test
name: run riscv benchmarks (Write-Back Cache)
script:
- ci/build-riscv-tests.sh
- make run-benchmarks-verilator defines=WB_DCACHE
# asm tests
- stage: test
name: run asm tests (Write-Back Cache)
script:
- ci/build-riscv-tests.sh
- make run-asm-tests-verilator defines=WB_DCACHE
# rv64um-*-* tests
- stage: test
name: run mul tests (Write-Back Cache)
script:
- ci/build-riscv-tests.sh
- make run-mul-verilator defines=WB_DCACHE
- stage: test
name: run fp tests (Write-Back Cache)
script:
- ci/build-riscv-tests.sh
- make run-fp-verilator defines=WB_DCACHE
# amo tests
# rv64ua-v-* tests
- stage: test
name: run amo tests (Write-Back Cache)
script:
- ci/build-riscv-tests.sh
- travis_wait 60 make run-amo-verilator defines=WB_DCACHE
- stage: test
name: run riscv benchmarks (Write-through Cache)
script:
- ci/build-riscv-tests.sh
- make run-benchmarks-verilator defines=WT_DCACHE
# asm tests
# rv64ui-v-* tests
- stage: test
name: run asm tests (Write-through Cache)
script:
- ci/build-riscv-tests.sh
- make run-asm-tests-verilator defines=WT_DCACHE
# rv64um-*-* tests
- stage: test
name: run mul tests (Write-through Cache)
script:
- ci/build-riscv-tests.sh
- make run-mul-verilator defines=WT_DCACHE
# rv64ud-*-* tests
- stage: test
name: run fp tests (Write-through Cache)
script:
- ci/build-riscv-tests.sh
- make run-fp-verilator defines=WT_DCACHE
# amo tests
# rv64ua-v-* tests
- stage: test
name: run amo tests (Write-through Cache)
script:
- ci/build-riscv-tests.sh
- make run-amo-verilator defines=WT_DCACHE
# extra time during long builds
install: travis_wait