File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -16,20 +16,26 @@ install:
16
16
- rustup component add rust-src
17
17
# Required by cargo-xclippy
18
18
- rustup component add clippy-preview
19
+ # For checking the code's formatting
20
+ - rustup component add rustfmt-preview
19
21
# Try installing cargo-xbuild if it's not already installed
20
22
- hash cargo-xbuild || cargo install cargo-xbuild
21
23
# Download OVMF
22
24
- bash -e "uefi-test-runner/ci/ovmf.sh"
23
25
24
26
before_script :
27
+ # Try using cached QEMU install
25
28
- export PATH="$PATH:$HOME/qemu/bin"
29
+ # Build QEMU from source if not installed
26
30
- hash qemu-system-x86_64 || bash -e "uefi-test-runner/ci/travis-qemu.sh"
27
31
- qemu-system-x86_64 --version
28
32
29
33
script :
30
34
- cd uefi-test-runner
31
- - ./build.py run --headless
35
+ # Check that formatting is OK
36
+ - cargo fmt --all -- --check
32
37
- ./build.py clippy
38
+ - ./build.py run --headless
33
39
34
40
cache :
35
41
directories :
You can’t perform that action at this time.
0 commit comments