forked from phil-opp/blog_os
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
53 lines (43 loc) · 1.01 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
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:
cargo: true
directories:
- $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)
- cargo update-installed
script:
- bootimage build
- cargo test
- bootimage test