Code Review
/
infra
/
cicd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
engine: Run tox job first before running anything else
[infra/cicd.git]
/
jjb
/
infra
/
jjb-merge.sh
diff --git
a/jjb/infra/jjb-merge.sh
b/jjb/infra/jjb-merge.sh
index fd377e6d856c173a61e75dcbb40e3bb3a7cb6c25..95d1d267c80cae052cc6fd21238aae4a5a3cdefe 100755
(executable)
--- a/
jjb/infra/jjb-merge.sh
+++ b/
jjb/infra/jjb-merge.sh
@@
-3,6
+3,11
@@
set -o errexit
set -o nounset
set -o pipefail
set -o nounset
set -o pipefail
+# install required packages
+sudo apt update > /dev/null 2>&1
+sudo apt install -y -q=3 gcc libffi-dev libssl-dev lsb-release libpython3-dev \
+ python3-minimal python3-pip python3-yaml virtualenv
+
# workaround for https://github.com/pypa/virtualenv/issues/1029
export PS1=${PS1:-}
# workaround for https://github.com/pypa/virtualenv/issues/1029
export PS1=${PS1:-}
@@
-10,7
+15,7
@@
cd $WORKSPACE
echo "Info: Installing OpenStack Jenkins Job Builder (JJB) version $JJB_VERSION from source in venv"
echo "----------------------------------------------------"
git clone -q $JJB_GIT_REPO -b $JJB_VERSION > /dev/null 2>&1
echo "Info: Installing OpenStack Jenkins Job Builder (JJB) version $JJB_VERSION from source in venv"
echo "----------------------------------------------------"
git clone -q $JJB_GIT_REPO -b $JJB_VERSION > /dev/null 2>&1
-virtualenv
.venv -q
+virtualenv
-p python3 --quiet --no-site-packages .venv
source .venv/bin/activate
cd jenkins-job-builder && pip install -q -r test-requirements.txt -e .
echo "Info: Installed JJB"
source .venv/bin/activate
cd jenkins-job-builder && pip install -q -r test-requirements.txt -e .
echo "Info: Installed JJB"