Skip to content
Snippets Groups Projects
Commit c1e58a05 authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

Improve scripts slightly

parent 6224d8fe
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/env bash
# Thu 22 Sep 2016 18:23:57 CEST
#!/usr/bin/env bash
# Thu 22 Sep 2016 18:23:57 CEST
#!/usr/bin/env bash
# Thu 22 Sep 2016 18:23:57 CEST
#!/usr/bin/env bash #!/usr/bin/env bash
# Wed 21 Sep 2016 13:08:05 CEST # Wed 21 Sep 2016 13:08:05 CEST
source $(dirname ${0})/functions.sh run_cmd $(dirname ${0})/before_test.sh
check_env DOCSERVER
check_env CONDA_PREFIX
BOB_DOCUMENTATION_SERVER="${DOCSERVER}/software/bob/docs/latest/bob/%s/master/"
PREFIX=`pwd`/${CONDA_PREFIX}
run_cmd $(dirname ${0})/before_build.sh
run_cmd ${PREFIX}/bin/pip install --use-wheel --no-index --pre dist/*.whl
#!/usr/bin/env bash
# Thu 22 Sep 2016 18:23:57 CEST
...@@ -11,17 +11,17 @@ arch() { ...@@ -11,17 +11,17 @@ arch() {
# Functions for coloring echo commands # Functions for coloring echo commands
log_info() { log_info() {
echo -e "\033[1;32m[`date +%c`] ${@}\033[0m" echo -e "\033[1;32m(`date +%T`) ${@}\033[0m"
} }
log_warn() { log_warn() {
echo -e "\033[1;33m[`date +%c`] ${@}\033[0m" echo -e "\033[1;33m(`date +%T`) ${@}\033[0m"
} }
log_error() { log_error() {
echo -e "\033[1;31m[`date +%c`] ${@}\033[0m" echo -e "\033[1;31m(`date +%T`) ${@}\033[0m"
} }
......
...@@ -11,11 +11,11 @@ fi ...@@ -11,11 +11,11 @@ fi
# Functions for coloring echo commands # Functions for coloring echo commands
log_info() { log_info() {
echo -e "\033[1;32m[`date +%c`] ${@}\033[0m" echo -e "\033[1;32m(`date +%T`) ${@}\033[0m"
} }
log_error() { log_error() {
echo -e "\033[1;31m[`date +%c`] ${@}\033[0m" echo -e "\033[1;31m(`date +%T`) ${@}\033[0m"
} }
# Function for running command and echoing results # Function for running command and echoing results
...@@ -42,18 +42,8 @@ get_exec() { ...@@ -42,18 +42,8 @@ get_exec() {
run_cmd mkdir -pv ${1} run_cmd mkdir -pv ${1}
get_script ${1} functions.sh get_script ${1} functions.sh
get_exec ${1} before_build.sh for stage in "build" "test" "wheels" "deploy"; do
get_exec ${1} build.sh get_exec ${1} before_${stage}.sh
get_exec ${1} after_build.sh get_exec ${1} ${stage}.sh
get_exec ${1} before_test.sh get_exec ${1} after_${stage}.sh
get_exec ${1} test.sh done
get_exec ${1} after_test.sh
get_exec ${1} before_wheels.sh
get_exec ${1} wheels.sh
get_exec ${1} after_wheels.sh
get_exec ${1} before_docs.sh
get_exec ${1} docs.sh
get_exec ${1} after_docs.sh
get_exec ${1} before_deploy.sh
get_exec ${1} deploy.sh
get_exec ${1} after_deploy.sh
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment