-
Notifications
You must be signed in to change notification settings - Fork 140
/
Copy path.travis.yml
105 lines (98 loc) · 2.49 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
language: minimal
dist: xenial
cache:
apt: true
timeout: 1000 #In seconds
directories:
# - $TRAVIS_BUILD_DIR/firesim-riscv-tools-prebuilt
- $TRAVIS_BUILD_DIR/riscv
- $TRAVIS_BUILD_DIR/linux
- $TRAVIS_BUILD_DIR/qemu
git:
submodules: false
depth: 1
env:
- RISCV=$TRAVIS_BUILD_DIR/riscv PATH=$PATH:$RISCV/bin
addons:
apt:
packages:
- expect
- autoconf
- automake
- autotools-dev
- bc
- bison
- build-essential
- curl
- expat
- libexpat-dev
- flex
- gawk
- gcc
- git
- gperf
- libgmp-dev
- libmpc-dev
- libmpfr-dev
- libtool
- texinfo
- tmux
- patchutils
- zlib1g-dev
- wget
- bzip2
- patch
- vim-common
- lbzip2
- python
- pkg-config
- libglib2.0-dev
- libpixman-1-dev
- libssl-dev
- makeself
- unzip
branches:
only:
- dev
- master
before_install:
- git submodule init -- linux
- git submodule init -- qemu
- if [ -d "linux/.git" ]; then ls; else git clone --shallow-since=2018-05-01 https://github.com/torvalds/linux linux; fi
- if [ -d "qemu/.git" ]; then ls; else git clone --shallow-since=2018-05-01 https://github.com/qemu/qemu qemu; fi
- git submodule update --depth=1 -- linux
- git submodule update --depth=1 -- qemu
- ./fast-setup.sh
- cp -r linux/.git linux-git
- cp -r qemu/.git qemu-git
jobs:
include:
- stage: cache warmup
script: true
after_failure:
- ls -al
- cat firesim-riscv-tools-prebuilt-*/riscv-tools-install.log
- stage: build everything & test
script:
- source ./source.sh
- mkdir build
- cd build
- cmake ../
- travis_wait 120 make -j3
- travis_wait 10 make run-tests
- cd ..
- cd qemu; git clean -fxd > /dev/null;git reset --hard > /dev/null;rm -rf .git;mv ../qemu-git .git;cd ..
- cd linux;git clean -fxd > /dev/null;git reset --hard > /dev/null;rm -rf .git;mv ../linux-git .git;cd ..
after_failure:
- cat screenlog.0
- cat output.log
- stage: build (sifive)
script:
- source ./source.sh
- mkdir build
- cd build
- cmake -DLINUX_SIFIVE=y -DSM_PLATFORM=fu540 ../
- travis_wait 120 make -j3
- cd ..
- cd qemu; git clean -fxd > /dev/null;git reset --hard > /dev/null;rm -rf .git;mv ../qemu-git .git;cd ..
- cd linux;git clean -fxd > /dev/null;git reset --hard > /dev/null;rm -rf .git;mv ../linux-git .git;cd ..