Code Review
/
releng
/
global-jjb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Add configurable doc-dir
[releng/global-jjb.git]
/
shell
/
tox-run.sh
diff --git
a/shell/tox-run.sh
b/shell/tox-run.sh
index
e87c98f
..
c955466
100644
(file)
--- a/
shell/tox-run.sh
+++ b/
shell/tox-run.sh
@@
-11,6
+11,7
@@
echo "---> tox-run.sh"
ARCHIVE_TOX_DIR="$WORKSPACE/archives/tox"
echo "---> tox-run.sh"
ARCHIVE_TOX_DIR="$WORKSPACE/archives/tox"
+ARCHIVE_DOC_DIR="$WORKSPACE/archives/docs"
mkdir -p "$ARCHIVE_TOX_DIR"
cd "$WORKSPACE/$TOX_DIR" || exit 1
mkdir -p "$ARCHIVE_TOX_DIR"
cd "$WORKSPACE/$TOX_DIR" || exit 1
@@
-56,7
+57,7
@@
echo "Completed tox runs."
DOC_DIR="${DOC_DIR:-docs/_build/html}"
if [[ -d "$DOC_DIR" ]]; then
echo "---> Archiving generated docs"
DOC_DIR="${DOC_DIR:-docs/_build/html}"
if [[ -d "$DOC_DIR" ]]; then
echo "---> Archiving generated docs"
- mv "$DOC_DIR"
archives/
+ mv "$DOC_DIR"
"$ARCHIVE_DOC_DIR"
fi
test "$tox_status" -eq 0 || exit "$tox_status"
fi
test "$tox_status" -eq 0 || exit "$tox_status"