mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-09-11 12:25:42 +03:00
39 lines
414 B
Bash
Executable File
39 lines
414 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -o errexit
|
|
set -o nounset
|
|
set -o pipefail
|
|
|
|
function rust() {
|
|
cargo fmt --check
|
|
cargo clippy --all-targets --all-features --tests
|
|
cargo test
|
|
}
|
|
|
|
function node() {
|
|
pnpm lint
|
|
pnpm check
|
|
}
|
|
|
|
if [[ "$#" -eq 0 ]]; then
|
|
set -o xtrace
|
|
rust
|
|
node
|
|
else
|
|
case "$1" in
|
|
rust)
|
|
set -o xtrace
|
|
rust
|
|
;;
|
|
node)
|
|
set -o xtrace
|
|
node
|
|
;;
|
|
*)
|
|
echo "Invalid argument: $1"
|
|
exit 1
|
|
;;
|
|
esac
|
|
exit 0
|
|
fi
|