Fetch and install Coverity on-line tool
Coverity is a static code analysis tool that is used in both TF core
projects.
Signed-off-by: Leonardo Sandoval <leonardo.sandoval@linaro.org>
Change-Id: I0a9f50d4badfce7270731ab432c3e9087b6a6492
diff --git a/bionic-amd64-tf-m-build/Dockerfile b/bionic-amd64-tf-m-build/Dockerfile
index 8956b8c..a585777 100644
--- a/bionic-amd64-tf-m-build/Dockerfile
+++ b/bionic-amd64-tf-m-build/Dockerfile
@@ -4,7 +4,7 @@
ENV ARMLMD_LICENSE_FILE=27000@ci.trustedfirmware.org
ENV DEBIAN_FRONTEND=noninteractive
-ENV PATH=$TOOLS_DIR/bin:${PATH}
+ENV PATH=$TOOLS_DIR/bin:$TOOLS_DIR/coverity/bin:${PATH}
ENV PLANTUML_JAR_PATH=/usr/share/plantuml/plantuml.jar
ENV PKG_DEPS="\
bison \
@@ -137,5 +137,14 @@
wget -q -c -m -A .zip -np -nd https://releases.linaro.org/members/arm/platforms/${LINARO_VERSION}/ ;\
for file in *.zip; do unzip -q ${file} -d $(basename ${file} .zip); done
+ARG COVERITY_VERSION=2019.03
+ARG COVERITY_TOKEN="qe4COzW0lhb4J1W01Eh1oQ"
+RUN cd $TOOLS_DIR ;\
+ wget https://scan.coverity.com/download/linux64 \
+ --post-data "token=${COVERITY_TOKEN}&project=ARM-software%2Farm-trusted-firmware" \
+ -O coverity_tool.tgz ;\
+ tar -xzf coverity_tool.tgz ;\
+ mv cov-analysis-linux64-${COVERITY_VERSION} coverity
+
EXPOSE 22
ENTRYPOINT ["/usr/sbin/setup-sshd"]