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-01-03 15:20:02 +04:00
|
|
|
rust: nightly-2019-01-01
|
2018-07-16 10:44:21 +04:00
|
|
|
|
2018-12-01 14:21:15 +04:00
|
|
|
os:
|
|
|
|
- linux
|
|
|
|
- osx
|
|
|
|
|
2018-07-16 10:44:21 +04:00
|
|
|
cache:
|
|
|
|
cargo: true
|
2018-12-01 14:21:15 +04:00
|
|
|
directories:
|
|
|
|
- $HOME/Library/Caches/Homebrew
|
2018-07-16 10:44:21 +04:00
|
|
|
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- qemu
|
2018-12-01 14:21:15 +04:00
|
|
|
homebrew:
|
|
|
|
packages:
|
|
|
|
- qemu
|
2018-07-16 10:44:21 +04:00
|
|
|
|
|
|
|
env:
|
|
|
|
matrix:
|
2018-12-28 18:20:21 +04:00
|
|
|
- ARCH="riscv64"
|
|
|
|
- ARCH="riscv64" OPTS="board=k210"
|
2018-07-16 10:44:21 +04:00
|
|
|
- ARCH="riscv32"
|
2018-12-01 13:47:02 +04:00
|
|
|
- ARCH="riscv32" OPTS="m_mode=1"
|
2018-07-16 10:44:21 +04:00
|
|
|
- ARCH="x86_64"
|
2018-11-19 21:33:21 +04:00
|
|
|
- ARCH="aarch64"
|
2017-04-19 14:53:28 +04:00
|
|
|
|
2018-08-04 20:37:36 +04:00
|
|
|
install:
|
2018-12-28 18:20:21 +04:00
|
|
|
- if [ $ARCH = riscv32 ] || [ $ARCH = riscv64 ]; then
|
|
|
|
[ $TRAVIS_OS_NAME = linux ] && export FILE="riscv64-unknown-elf-gcc-8.1.0-2018.12.0-x86_64-linux-ubuntu14";
|
|
|
|
[ $TRAVIS_OS_NAME = osx ] && export FILE="riscv64-unknown-elf-gcc-8.1.0-2018.12.0-x86_64-apple-darwin";
|
2018-12-01 14:21:15 +04:00
|
|
|
wget https://static.dev.sifive.com/dev-tools/$FILE.tar.gz;
|
|
|
|
tar xf $FILE.tar.gz;
|
|
|
|
export PATH=$PATH:$PWD/$FILE/bin;
|
2018-07-17 08:40:34 +04:00
|
|
|
fi
|
2018-11-19 21:33:21 +04:00
|
|
|
- if [ $ARCH = aarch64 ]; then
|
2018-12-01 14:21:15 +04:00
|
|
|
if [ $TRAVIS_OS_NAME = linux ]; then
|
|
|
|
wget https://web.stanford.edu/class/cs140e/files/aarch64-none-elf-linux-x64.tar.gz;
|
|
|
|
tar -xzvf aarch64-none-elf-linux-x64.tar.gz;
|
|
|
|
export PATH=$PATH:$PWD/aarch64-none-elf/bin;
|
|
|
|
elif [ $TRAVIS_OS_NAME = osx ]; then
|
|
|
|
brew tap SergioBenitez/osxct;
|
|
|
|
brew install aarch64-none-elf;
|
|
|
|
fi;
|
2018-11-19 21:33:21 +04:00
|
|
|
fi
|
|
|
|
|
2018-04-09 17:20:47 +04:00
|
|
|
|
2018-08-04 20:37:36 +04:00
|
|
|
before_script:
|
|
|
|
- rustup component add rust-src
|
|
|
|
- (test -x $HOME/.cargo/bin/cargo-xbuild || cargo install cargo-xbuild)
|
2018-09-19 16:43:49 +04:00
|
|
|
- (test -x $HOME/.cargo/bin/bootimage || cargo install bootimage)
|
2018-08-04 20:37:36 +04:00
|
|
|
|
2017-04-19 14:53:28 +04:00
|
|
|
script:
|
2018-12-01 13:47:02 +04:00
|
|
|
- cd kernel && make build arch=$ARCH $OPTS && cd ..
|
2018-11-20 07:24:25 +04:00
|
|
|
- cd user && make arch=$ARCH
|