Skip to content

Commit

Permalink
Scripts: Move all the generation scripts from pre.sh to generate.sh.
Browse files Browse the repository at this point in the history
  • Loading branch information
realazthat committed Aug 13, 2024
1 parent ab0e63c commit 7d63230
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 3 deletions.
22 changes: 22 additions & 0 deletions scripts/generate.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#!/bin/bash
# https://gist.github.com/mohanpedala/1e2ff5661761d3abd0385e8223e16425
set -e -x -v -u -o pipefail

################################################################################
SCRIPT_DIR=$(realpath "$(dirname "${BASH_SOURCE[0]}")")
source "${SCRIPT_DIR}/utilities/common.sh"

PYTHON_VERSION_PATH=${PWD}/scripts/.python-version \
VENV_PATH=${PWD}/.cache/scripts/.venv \
source "${PROJ_PATH}/scripts/utilities/ensure-venv.sh"
PYTHON_VERSION_PATH=${PWD}/scripts/.python-version \
TOML=${PROJ_PATH}/scripts/pyproject.toml EXTRA=dev \
DEV_VENV_PATH="${PWD}/.cache/scripts/.venv" \
TARGET_VENV_PATH="${PWD}/.cache/scripts/.venv" \
bash "${PROJ_PATH}/scripts/utilities/ensure-reqs.sh"
################################################################################

bash scripts/format.sh
bash scripts/run-all-examples.sh
bash scripts/generate-readme.sh
################################################################################
5 changes: 2 additions & 3 deletions scripts/pre.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,9 @@ if [[ -z "${EXCALIDRAW_BRUTE_EXPORT_CLI_URL}" ]]; then
echo -e "${RED}EXCALIDRAW_BRUTE_EXPORT_CLI_URL is not set${NC}"
exit 1
fi
bash scripts/run-all-examples.sh
bash scripts/format.sh

bash scripts/generate.sh
bash scripts/run-ood-smoke-test.sh
bash scripts/generate-readme.sh
if [[ -z "${GITHUB_ACTIONS:-}" ]]; then
bash scripts/utilities/act.sh
bash scripts/precommit.sh
Expand Down

0 comments on commit 7d63230

Please sign in to comment.