2018-12-01 14:21:15 +04:00
sudo : false
2017-04-19 14:53:28 +04:00
2019-09-19 21:38:52 +04:00
dist : bionic
2019-01-03 17:50:48 +04:00
2018-07-06 19:23:02 +04:00
language : rust
2017-04-19 14:53:28 +04:00
2019-09-11 18:46:09 +04:00
rust : nightly-2019-09-01
2018-07-16 10:44:21 +04:00
2018-12-01 14:21:15 +04:00
os :
- linux
2019-09-11 18:46:09 +04:00
- osx
2018-12-01 14:21:15 +04:00
2018-07-16 10:44:21 +04:00
cache :
cargo : true
2018-12-01 14:21:15 +04:00
directories :
- $HOME/Library/Caches/Homebrew
2019-09-22 21:08:39 +04:00
- $TRAVIS_BUILD_DIR/qemu-4.1.0/$ARCH-softmmu
2018-07-16 10:44:21 +04:00
addons :
2018-12-01 14:21:15 +04:00
homebrew :
2019-09-22 21:08:39 +04:00
update : true
brewfile : true
2018-12-01 14:21:15 +04:00
packages :
- qemu
2018-07-16 10:44:21 +04:00
env :
matrix :
2018-12-28 18:20:21 +04:00
- ARCH="riscv64"
2019-02-15 12:10:12 +04:00
- ARCH="riscv64" OPTS="board=u540"
2019-09-11 18:46:09 +04:00
- ARCH="riscv64" OPTS="board=k210"
- ARCH="riscv64" OPTS="board=rocket_chip"
2018-07-16 10:44:21 +04:00
- ARCH="riscv32"
- ARCH="x86_64"
2019-09-11 18:46:09 +04:00
- ARCH="x86_64" OPTS="board=pc"
2018-11-19 21:33:21 +04:00
- ARCH="aarch64"
2019-04-09 09:31:56 +04:00
- ARCH="mipsel" OPTS="board=malta"
2017-04-19 14:53:28 +04:00
2018-08-04 20:37:36 +04:00
install :
2019-01-03 17:50:48 +04:00
- if [ $TRAVIS_OS_NAME = linux ]; then
2019-09-11 18:46:09 +04:00
wget https://download.qemu.org/qemu-4.1.0.tar.xz && tar xJf qemu-4.1.0.tar.xz > /dev/null && cd qemu-4.1.0 && ./configure --target-list=$ARCH-softmmu && make && cd ..;
export PATH=$PATH:$PWD/qemu-4.1.0/$ARCH-softmmu:$PWD/qemu-4.1.0;
2019-03-25 17:30:11 +04:00
sudo apt update;
2019-08-07 12:35:38 +04:00
sudo apt install device-tree-compiler -y;
2019-03-26 13:33:32 +04:00
fi
2018-08-04 20:37:36 +04:00
before_script :
2019-04-11 20:23:34 +04:00
- rustup component add rust-src llvm-tools-preview
- (test -x $HOME/.cargo/bin/cargo-objdump || cargo install cargo-binutils)
2018-08-04 20:37:36 +04:00
- (test -x $HOME/.cargo/bin/cargo-xbuild || cargo install cargo-xbuild)
2017-04-19 14:53:28 +04:00
script :
2019-09-19 21:38:52 +04:00
- cd user && make sfsimg arch=$ARCH prebuilt=1 && cd ..
2018-12-01 13:47:02 +04:00
- cd kernel && make build arch=$ARCH $OPTS && cd ..
2019-03-27 03:28:18 +04:00
- if [ $ARCH = riscv32 ]; then
2019-03-26 12:50:21 +04:00
cd tests && ./test.sh && cd ..;
fi
2019-09-22 21:08:39 +04:00
before_cache :
- if [ $TRAVIS_OS_NAME = osx ]; then brew cleanup; fi