2018-12-01 14:21:15 +04:00
sudo : false
2017-04-19 14:53:28 +04:00
2019-01-03 17:50:48 +04:00
dist : xenial
2018-07-06 19:23:02 +04:00
language : rust
2017-04-19 14:53:28 +04:00
2019-02-15 16:11:27 +04:00
rust : nightly-2019-02-16
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
2019-01-03 17:50:48 +04:00
- $TRAVIS_BUILD_DIR/qemu-3.1.0
2018-07-16 10:44:21 +04:00
addons :
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"
2019-02-15 12:10:12 +04:00
- ARCH="riscv64" OPTS="board=u540"
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
2019-02-15 12:10:12 +04:00
[ $TRAVIS_OS_NAME = linux ] && export FILE="riscv64-unknown-elf-gcc-8.1.0-2019.01.0-x86_64-linux-ubuntu14";
[ $TRAVIS_OS_NAME = osx ] && export FILE="riscv64-unknown-elf-gcc-8.1.0-2019.01.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
2019-02-15 12:10:12 +04:00
export FILE="gcc-arm-8.2-2018.11-x86_64-aarch64-elf";
wget https://developer.arm.com/-/media/Files/downloads/gnu-a/8.2-2018.11/$FILE.tar.xz;
tar -xvf $FILE.tar.xz;
export PATH=$PATH:$PWD/$FILE/bin;
2018-12-01 14:21:15 +04:00
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
2019-01-03 17:50:48 +04:00
- if [ $TRAVIS_OS_NAME = linux ]; then
wget https://download.qemu.org/qemu-3.1.0.tar.xz && tar xvJf qemu-3.1.0.tar.xz > /dev/null && cd qemu-3.1.0 && ./configure --target-list=$ARCH-softmmu && make && cd ..;
export PATH=$PATH:$PWD/qemu-3.1.0/$ARCH-softmmu;
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)
2019-01-03 15:37:04 +04:00
- if [ $ARCH = x86_64 ]; then
(test -x $HOME/.cargo/bin/bootimage || cargo install bootimage);
fi
2018-08-04 20:37:36 +04:00
2017-04-19 14:53:28 +04:00
script :
2019-02-21 15:17:36 +04:00
- cd user && make sfsimg arch=$ARCH && cd ..
2018-12-01 13:47:02 +04:00
- cd kernel && make build arch=$ARCH $OPTS && cd ..