Files
blog_os/.travis.yml
2018-02-10 16:45:53 +01:00

54 lines
1.0 KiB
YAML

language: rust
sudo: false
notifications:
email:
on_success: never
on_failure: change
branches:
except:
# Used by bors
- staging.tmp
rust:
- nightly
os:
- linux
- osx
addons:
apt:
sources:
- llvm-toolchain-trusty-5.0
packages:
- lld-5.0
cache:
directories:
- $HOME/.cargo
- $HOME/.xargo
- $TRAVIS_BUILD_DIR/target
before_install:
- |
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
set -e
LLVM_URL="https://releases.llvm.org/5.0.1/clang+llvm-5.0.1-x86_64-apple-darwin.tar.xz"
travis_retry wget -O llvm.tar.xz -nv ${LLVM_URL}
tar -xJ -f llvm.tar.xz
export PATH="`pwd`/clang+llvm-5.0.1-final-x86_64-apple-darwin/bin:$PATH"
fi
before_script:
- rustup component add rust-src
- (test -x $HOME/.cargo/bin/cargo-install-update || cargo install cargo-update)
- (test -x $HOME/.cargo/bin/xargo || cargo install xargo)
- (test -x $HOME/.cargo/bin/bootimage || cargo install bootimage)
- cargo install-update -a
script:
- bootimage --target x86_64-blog_os