From eabef5194ad2dcf21d6f8110a4a81f6c8d8d772a Mon Sep 17 00:00:00 2001 From: Kerollmops Date: Mon, 16 Jan 2023 16:26:07 +0100 Subject: [PATCH] Remove the useless script folder --- script/pre-commit | 36 ------------------------------------ script/qc_loop.sh | 11 ----------- 2 files changed, 47 deletions(-) delete mode 100755 script/pre-commit delete mode 100755 script/qc_loop.sh diff --git a/script/pre-commit b/script/pre-commit deleted file mode 100755 index 4819a3b52..000000000 --- a/script/pre-commit +++ /dev/null @@ -1,36 +0,0 @@ -#!/usr/bin/env bash - -cargo check --workspace --all-targets &>/dev/null -result=$? - -if [[ ${result} -ne 0 ]] ; then - cat <<\EOF -The project does not compile. You might want to fix your error before commiting. - -If you still want to commit you can do it by appending ---no-verify -at the end of your previous command. - -If you are running a variant of bash you can directly paste this command in your terminal: -!! --no-verify -EOF - exit 1 -fi - -cargo fmt --all -- --check &>/dev/null -result=$? - -if [[ ${result} -ne 0 ]] ; then - cat <<\EOF -The project is badly formatted. Please run: -cargo fmt --all - -If you want to create your commit without propper formatting you can add ---no-verify -at the end of your commit. - -If you are running a variant of bash you can directly paste this command in your terminal: -!! --no-verify -EOF - exit 1 -fi diff --git a/script/qc_loop.sh b/script/qc_loop.sh deleted file mode 100755 index c479307cc..000000000 --- a/script/qc_loop.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/usr/bin/env bash - -export RUST_BACKTRACE=1 - -while true -do - cargo test qc_ --release -- --nocapture - if [[ x$? != x0 ]] ; then - exit $? - fi -done