Skip to content

Commit ba85a0e

Browse files
bors[bot]Disasm
andauthored
Merge #54
54: Check code style on CI r=almindor a=Disasm Co-authored-by: Vadim Kaushan <[email protected]>
2 parents 80343ad + ef768fb commit ba85a0e

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

riscv-rt/.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ matrix:
2121
rust:
2222
language: bash
2323
if: (branch = staging OR branch = trying OR branch = master) OR (type = pull_request AND branch = master)
24+
- env: RUSTFMT=1
25+
rust: stable
26+
if: (branch = staging OR branch = trying OR branch = master) OR (type = pull_request AND branch = master)
2427

2528

2629
install:

riscv-rt/ci/install.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,7 @@ if [ -n "${CHECK_BLOBS:-}" ]; then
1212
curl -L https://static.dev.sifive.com/dev-tools/riscv64-unknown-elf-gcc-8.1.0-2018.12.0-x86_64-linux-ubuntu14.tar.gz | tar --strip-components=1 -C gcc -xz
1313
fi
1414
fi
15+
16+
if [ -n "${RUSTFMT:-}" ]; then
17+
rustup component add rustfmt
18+
fi

riscv-rt/ci/script.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,7 @@ if [ -n "${CHECK_BLOBS:-}" ]; then
1818
PATH="$PATH:$PWD/gcc/bin"
1919
./check-blobs.sh
2020
fi
21+
22+
if [ -n "${RUSTFMT:-}" ]; then
23+
cargo fmt -- --check
24+
fi

0 commit comments

Comments
 (0)