Skip to content

Commit

Permalink
ENH(ci): Add and update deployment scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeSWang committed Sep 10, 2024
1 parent fce377c commit 3a7fb2b
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ docs/source/Doxyfile.conf.bak

## CI generated
deploy/pkg/patches/**
deploy/dev/*.json

## Jupyter Notebook
.ipynb_checkpoints
Expand Down
16 changes: 16 additions & 0 deletions deploy/dev/enh_codee.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/usr/bin/env bash
#
# @file enh_codee.sh
# @author Mike S Wang
# @brief Improve code quality with Codee.
# @note Requires ``bear`` (e.g. from conda-forge) and ``codee``.
#

THIS_DIR="$(dirname -- "${BASH_SOURCE[0]}")"

make cppclean

bear --output "${THIS_DIR}/compile_commands.json" -- \
make -j cppappbuild useomp=true

codee checks --config "${THIS_DIR}/compile_commands.json"
4 changes: 3 additions & 1 deletion deploy/pkg/prerelease_ops.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@
#

THIS_DIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &> /dev/null && pwd)"
CONFIG_FILE="${THIS_DIR}/../../.pyproject.toml"
ROOT_DIR="${THIS_DIR}/../.."

export PYTHONPATH="${PYTHONPATH}:${THIS_DIR}"

CONFIG_FILE="${ROOT_DIR}/.pyproject.toml"
semantic-release -v --config ${CONFIG_FILE} changelog 2> /dev/null
semantic-release -v --config ${CONFIG_FILE} --noop version # 2> /dev/null

0 comments on commit 3a7fb2b

Please sign in to comment.