environment
This commit is contained in:
parent
a88c031ec3
commit
de4c334582
1 changed files with 11 additions and 10 deletions
|
@ -421,12 +421,12 @@ SPCD_PM_ZYPPER="zypper"
|
|||
SPCD_PYTHON_VENV="/opt/venv"
|
||||
SPCD_PYTHON_VENV_BINARIES="${SPCD_PYTHON_VENV}/bin"
|
||||
|
||||
# ╭───────┬─────╮
|
||||
# │ steps │ env │
|
||||
# ╰───────┴─────╯
|
||||
# ╭───────┬─────────────╮
|
||||
# │ steps │ environment │
|
||||
# ╰───────┴─────────────╯
|
||||
|
||||
spcd_set_environment_variables() {
|
||||
spcd_step "Set environment variables"
|
||||
spcd_environment_set_variables() {
|
||||
spcd_step "Set variables"
|
||||
# check script first
|
||||
[ -n "${SPCD}" ] || spcd_error_ci "SPCD"
|
||||
# continuous integration / github → gitea → forgejo
|
||||
|
@ -906,8 +906,8 @@ ${SPCD_PYTHON_VENV}/lib/${SPCD_PYTHON_COMMAND}/site-packages"
|
|||
spcd_os_printenv "SPCD_CA" "SPCD_DL"
|
||||
}
|
||||
|
||||
spcd_list_working_directory() {
|
||||
spcd_step "List working directory"
|
||||
spcd_environment_list_workspace() {
|
||||
spcd_step "List workspace"
|
||||
spcd_lwd__path="$(realpath .)"
|
||||
spcd_os_ls "${spcd_lwd__path}"
|
||||
}
|
||||
|
@ -1250,9 +1250,10 @@ ${SPCD_PYTHON_ALIAS} / ${spcd_stp__name}"
|
|||
# ╰──────╯
|
||||
|
||||
spcd_main() {
|
||||
# env
|
||||
spcd_set_environment_variables
|
||||
spcd_list_working_directory
|
||||
spcd_step_in "Environment"
|
||||
spcd_environment_set_variables
|
||||
spcd_environment_list_workspace
|
||||
spcd_step_out
|
||||
# pkg
|
||||
spcd_set_packages_repositories
|
||||
spcd_set_packages_configuration
|
||||
|
|
Loading…
Reference in a new issue