2018-12-01 14:21:15 +04:00
|
|
|
sudo: false
|
2017-04-19 14:53:28 +04:00
|
|
|
|
2018-07-06 19:23:02 +04:00
|
|
|
language: rust
|
2017-04-19 14:53:28 +04:00
|
|
|
|
2019-09-23 21:48:10 +04:00
|
|
|
rust: nightly-2019-07-15
|
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
|
|
|
|
2019-10-04 21:18:05 +04:00
|
|
|
dist: bionic
|
|
|
|
|
|
|
|
osx_image: xcode11
|
|
|
|
|
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-24 10:47:53 +04:00
|
|
|
- $TRAVIS_BUILD_DIR/qemu-4.1.0
|
2018-07-16 10:44:21 +04:00
|
|
|
|
|
|
|
addons:
|
2019-10-04 21:18:05 +04:00
|
|
|
apt:
|
2019-09-22 21:08:39 +04:00
|
|
|
update: true
|
2019-10-04 21:18:05 +04:00
|
|
|
packages:
|
|
|
|
- device-tree-compiler
|
|
|
|
homebrew:
|
2018-12-01 14:21:15 +04:00
|
|
|
packages:
|
|
|
|
- qemu
|
2019-09-23 21:19:31 +04:00
|
|
|
- dtc
|
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-24 10:47:53 +04:00
|
|
|
[ ! -d qemu-4.1.0/$ARCH-softmmu ] && 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 ..;
|
2019-09-11 18:46:09 +04:00
|
|
|
export PATH=$PATH:$PWD/qemu-4.1.0/$ARCH-softmmu:$PWD/qemu-4.1.0;
|
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-09-24 10:26:18 +04:00
|
|
|
- cd kernel && make test arch=$ARCH $OPTS && cd ..
|