1
0
mirror of https://github.com/rcore-os/rCore.git synced 2024-11-22 16:16:16 +04:00
rCore/.travis.yml

58 lines
1.3 KiB
YAML
Raw Normal View History

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
rust: nightly-2019-07-15
2018-07-16 10:44:21 +04:00
2018-12-01 14:21:15 +04:00
os:
- linux
- 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:
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
- 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"
- ARCH="riscv64" OPTS="board=k210"
- ARCH="riscv64" OPTS="board=rocket_chip"
2018-07-16 10:44:21 +04:00
- ARCH="riscv32"
- ARCH="x86_64"
- ARCH="x86_64" OPTS="board=pc"
2018-11-19 21:33:21 +04:00
- ARCH="aarch64"
- 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 ..;
export PATH=$PATH:$PWD/qemu-4.1.0/$ARCH-softmmu:$PWD/qemu-4.1.0;
fi
2018-08-04 20:37:36 +04:00
before_script:
- 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:
- 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 ..
- cd kernel && make test arch=$ARCH $OPTS && cd ..