Files
blog_os/.travis.yml
Philipp Oppermann b4238e93af Reduce cache size on travis (#532)
The Windows build fails often because it takes too long to store the build cache (timeout). This commit uses `cargo cache` to clean up the /home/philipp/.cargo directory before caching. It also removes caching of the `target` directory since it needs to be recompiled for each new nightly anyway.
2019-01-21 23:30:02 +01:00

56 lines
1.1 KiB
YAML

language: rust
sudo: false
notifications:
email:
on_success: never
on_failure: change
branches:
only:
# This is where pull requests from "bors r+" are built.
- staging
# This is where pull requests from "bors try" are built.
- trying
# Build pull requests.
- master
rust:
- nightly
os:
- linux
- osx
- windows
cache:
directories:
- $HOME/.cargo
- $HOME/Library/Caches/Homebrew
addons:
apt:
packages:
- qemu-system-x86
homebrew:
packages:
- qemu
install:
- if [ $TRAVIS_OS_NAME = windows ]; then choco install qemu; export PATH="/c/Program Files/qemu:$PATH"; fi
before_script:
- rustup component add rust-src
- (test -x $HOME/.cargo/bin/cargo-update-installed || cargo install cargo-update-installed)
- (test -x $HOME/.cargo/bin/cargo-xbuild || cargo install cargo-xbuild)
- (test -x $HOME/.cargo/bin/bootimage || cargo install bootimage)
- (test -x $HOME/.cargo/bin/cargo-cache || cargo install cargo-cache)
- cargo update-installed
script:
- bootimage build
- cargo test
- bootimage test
- cargo cache --autoclean