diff --git a/do.sh b/do.sh deleted file mode 100644 index 1379b82..0000000 --- a/do.sh +++ /dev/null @@ -1,38 +0,0 @@ -#!/usr/bin/env bash -# Do - The Simplest Build Tool on Earth. -# Documentation and examples see https://github.com/8gears/do - -set -Eeuo pipefail # -e "Automatic exit from bash shell script on error" -u "Treat unset variables and parameters as errors" - -build() { - echo "I am ${FUNCNAME[0]}ing" - poetry build -} - -test() { - echo "I am ${FUNCNAME[0]}ing" - poetry run flake8 deepdog tests - poetry run mypy deepdog - poetry run pytest -} - -fmt() { - poetry run black . - find . -not \( -path "./.*" -type d -prune \) -type f -name "*.py" -exec sed -i -e 's/ /\t/g' {} \; -} - -release() { - ./scripts/release.sh -} - -htmlcov() { - poetry run pytest --cov-report=html -} - -all() { - build && test -} - -"$@" # <- execute the task - -[ "$#" -gt 0 ] || printf "Usage:\n\t./do.sh %s\n" "($(compgen -A function | grep '^[^_]' | paste -sd '|' -))"