Skip to content

Commit c1067f5

Browse files
GabrielMajeriHadrienG2
authored andcommitted
Run rustfmt in CI (#36)
1 parent 0b0ed3b commit c1067f5

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.travis.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,26 @@ install:
1616
- rustup component add rust-src
1717
# Required by cargo-xclippy
1818
- rustup component add clippy-preview
19+
# For checking the code's formatting
20+
- rustup component add rustfmt-preview
1921
# Try installing cargo-xbuild if it's not already installed
2022
- hash cargo-xbuild || cargo install cargo-xbuild
2123
# Download OVMF
2224
- bash -e "uefi-test-runner/ci/ovmf.sh"
2325

2426
before_script:
27+
# Try using cached QEMU install
2528
- export PATH="$PATH:$HOME/qemu/bin"
29+
# Build QEMU from source if not installed
2630
- hash qemu-system-x86_64 || bash -e "uefi-test-runner/ci/travis-qemu.sh"
2731
- qemu-system-x86_64 --version
2832

2933
script:
3034
- cd uefi-test-runner
31-
- ./build.py run --headless
35+
# Check that formatting is OK
36+
- cargo fmt --all -- --check
3237
- ./build.py clippy
38+
- ./build.py run --headless
3339

3440
cache:
3541
directories:

0 commit comments

Comments
 (0)