-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path.travis.yml
106 lines (101 loc) · 2.04 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
language: cpp
# run on new infrastructure
sudo: false
cache:
apt: true
directories:
$RISCV
$HOME/.sbt
timeout: 1000
# required packages to install
dist: bionic
jdk:
- openjdk8
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-7
- g++-7
- gperf
- autoconf
- automake
- autotools-dev
- curl
- python3
- git
- ca-certificates
- libmpc-dev
- libmpfr-dev
- libgmp-dev
- gawk
- build-essential
- bison
- flex
- texinfo
- libusb-1.0-0-dev
- gperf
- libtool
- patchutils
- bc
- libexpat-dev
- zlib1g-dev
- valgrind
- verilator
env:
global:
- RISCV="/home/travis/riscv_install"
branches:
only:
- master
before_install:
- export CXX=g++-7 CC=gcc-7
# setup dependent paths
- export PATH=$RISCV/bin:$VERILATOR_ROOT/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=1
- git submodule update --init --recursive
stages:
- checkout
- compile1
- build_model
- test1
- test2
jobs:
include:
- stage: checkout
name: checkout gcc
script:
- tb/ci/riscv_gcc_check.sh 0
- stage: compile1
name: build gcc
script:
- tb/ci/riscv_gcc_check.sh 1
- rm -rf $RISCV/riscv-gnu-toolchain
- stage: build_model
name: build verilator model
script:
- cd tb
- make clean
- make core_verilate
- stage: test
name: run riscv ui-p
script:
- cd tb/ci
- ./run_rv_test.sh riscv32ui-p.list 0
- stage: test
name: run riscv um-p
script:
- cd tb/ci
- ./run_rv_test.sh riscv32um-p.list 0
- stage: test
name: run riscv ua-p
script:
- cd tb/ci
- ./run_rv_test.sh riscv32ua-p.list 0
install: travis_wait