-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wip: Refactor CI to use GitHub actions and generic bash scripts
- Loading branch information
Showing
3 changed files
with
57 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#!/usr/bin/env bash | ||
set -euo pipefail | ||
# set -x | ||
|
||
THIS_FILE=$(readlink -f "${BASH_SOURCE[0]}") | ||
THIS_DIR=$(dirname "$THIS_FILE") | ||
ROOT_DIR=$(dirname "$THIS_DIR") | ||
WORKSPACE_DIR="$(dirname "$ROOT_DIR")" | ||
|
||
. "$THIS_DIR/kash/kash.sh" | ||
|
||
## Parse options | ||
## | ||
|
||
PUBLISH=false | ||
CI_STEP_NAME="Build docs" | ||
while getopts "pr:" OPT; do | ||
case $OPT in | ||
p) # publish doc | ||
PUBLISH=true | ||
;; | ||
r) # report outcome to slack | ||
CI_STEP_NAME=$OPTARG | ||
load_env_files "$WORKSPACE_DIR/development/common/SLACK_WEBHOOK_JOBS.enc.env" | ||
trap 'slack_ci_report "$ROOT_DIR" "$CI_STEP_NAME" "$?" "$SLACK_WEBHOOK_JOBS"' EXIT | ||
;; | ||
*) | ||
;; | ||
esac | ||
done | ||
|
||
|
||
## Build docs | ||
## | ||
|
||
build_docs "$ROOT_DIR" "kalisio/kdk" "$PUBLISH" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters