forked from rust-osdev/uefi-rs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
60 lines (52 loc) · 1.44 KB
/
Copy path.travis.yml
File metadata and controls
60 lines (52 loc) · 1.44 KB
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
54
55
56
57
58
59
60
sudo: false
# We need a newer version of Python
language: python
# Need Python for build script
python: 3.6
install:
# Manually install nightly Rust
- curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain nightly
- source "$HOME/.cargo/env"
- rustc -V
- cargo -V
# Required by cargo-xbuild
- rustup component add rust-src
# For checking the code's formatting
- rustup component add rustfmt
# Try installing cargo-xbuild if it's not already installed
- hash cargo-xbuild || cargo install cargo-xbuild
# Save the current branch
- git branch travis-temp
# Checkout the firmware branch
- git fetch origin ovmf:ovmf
- git checkout ovmf
# Download it with Git LFS
- git lfs pull
# Copy it to the local directory
- cp -v x86_64/*.fd .
# Checkout the original repo back
- git checkout travis-temp
# Move the firmware files to the right directory
- mv -v *.fd uefi-test-runner
before_script:
# Try using cached QEMU install
- export PATH="$PATH:$HOME/qemu/bin"
# Build QEMU from source if not installed
- hash qemu-system-x86_64 || bash -e "uefi-test-runner/ci/travis-qemu.sh"
- qemu-system-x86_64 --version
script:
- cd uefi-test-runner
# Check that formatting is OK
- cargo fmt --all -- --check
- ./build.py run --headless
cache:
directories:
- $HOME/.cargo/
- $HOME/qemu/
- target/
addons:
apt:
packages:
- bsdtar
notifications:
email: false