Skip to content

Commit

Permalink
CI: enforce no-warnings on test builds
Browse files Browse the repository at this point in the history
  • Loading branch information
ppannuto committed Apr 2, 2020
1 parent 0560536 commit b153e98
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
13 changes: 8 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -53,24 +53,27 @@ ci-travis:
@printf "$$(tput bold)*****************$$(tput sgr0)\n"
@printf "$$(tput bold)* CI: Libraries *$$(tput sgr0)\n"
@printf "$$(tput bold)*****************$$(tput sgr0)\n"
@cd libraries/tock-cells && CI=true cargo test
@cd libraries/tock-register-interface && CI=true cargo test
@cd libraries/enum_primitive && CI=true RUSTFLAGS="-D warnings" cargo test
@cd libraries/riscv-csr && CI=true RUSTFLAGS="-D warnings" cargo test
@cd libraries/tock-cells && CI=true RUSTFLAGS="-D warnings" cargo test
@cd libraries/tock-register-interface && CI=true RUSTFLAGS="-D warnings" cargo test
@cd libraries/tock-rt0 && CI=true RUSTFLAGS="-D warnings" cargo test
@printf "$$(tput bold)*************$$(tput sgr0)\n"
@printf "$$(tput bold)* CI: Archs *$$(tput sgr0)\n"
@printf "$$(tput bold)*************$$(tput sgr0)\n"
@for f in `./tools/list_archs.sh`; do echo "$$(tput bold)Test $$f"; cd arch/$$f; CI=true TOCK_KERNEL_VERSION=ci_test cargo test || exit 1; cd ../..; done
@for f in `./tools/list_archs.sh`; do echo "$$(tput bold)Test $$f"; cd arch/$$f; CI=true RUSTFLAGS="-D warnings" TOCK_KERNEL_VERSION=ci_test cargo test || exit 1; cd ../..; done
@printf "$$(tput bold)*************$$(tput sgr0)\n"
@printf "$$(tput bold)* CI: Chips *$$(tput sgr0)\n"
@printf "$$(tput bold)*************$$(tput sgr0)\n"
@for f in `./tools/list_chips.sh`; do echo "$$(tput bold)Test $$f"; cd chips/$$f; CI=true TOCK_KERNEL_VERSION=ci_test cargo test || exit 1; cd ../..; done
@for f in `./tools/list_chips.sh`; do echo "$$(tput bold)Test $$f"; cd chips/$$f; CI=true RUSTFLAGS="-D warnings" TOCK_KERNEL_VERSION=ci_test cargo test || exit 1; cd ../..; done
@printf "$$(tput bold)**************$$(tput sgr0)\n"
@printf "$$(tput bold)* CI: Syntax *$$(tput sgr0)\n"
@printf "$$(tput bold)**************$$(tput sgr0)\n"
@CI=true $(MAKE) allcheck
@printf "$$(tput bold)**************$$(tput sgr0)\n"
@printf "$$(tput bold)* CI: Kernel *$$(tput sgr0)\n"
@printf "$$(tput bold)**************$$(tput sgr0)\n"
@cd kernel && CI=true TOCK_KERNEL_VERSION=ci_test cargo test
@cd kernel && CI=true TOCK_KERNEL_VERSION=ci_test RUSTFLAGS="-D warnings" cargo test
@printf "$$(tput bold)*******************$$(tput sgr0)\n"
@printf "$$(tput bold)* CI: Compilation *$$(tput sgr0)\n"
@printf "$$(tput bold)*******************$$(tput sgr0)\n"
Expand Down
1 change: 1 addition & 0 deletions arch/cortex-m0/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ pub unsafe extern "C" fn switch_to_user(
user_stack as *mut u8
}

#[cfg(all(target_arch = "arm", target_os = "none"))]
struct HardFaultStackedRegisters {
r0: u32,
r1: u32,
Expand Down

0 comments on commit b153e98

Please sign in to comment.