forked from gentoo-utils/gentoo-utils
push check.sh
This commit is contained in:
25
check.sh
Executable file
25
check.sh
Executable file
@@ -0,0 +1,25 @@
|
||||
#!/bin/bash
|
||||
|
||||
source /etc/profile
|
||||
|
||||
export CC=clang CXX=clang++
|
||||
|
||||
cargo fmt --check || exit $?
|
||||
|
||||
cargo clippy || exit $?
|
||||
|
||||
cargo test -r || exit $?
|
||||
|
||||
cargo build --all --all-features || exit $?
|
||||
|
||||
build=$(mktemp -d)
|
||||
|
||||
meson setup ${build} || exit $?
|
||||
|
||||
meson compile -C ${build} || exit $?
|
||||
|
||||
meson test -C ${build} || exit $?
|
||||
|
||||
rm -rf ${build}
|
||||
|
||||
meson format --recursive --check-only || exit $?
|
||||
Reference in New Issue
Block a user