Add verification to packaging job to make sure that the included submodule passes... 45/3245/1
authorZhe Huang <zhehuang@research.att.com>
Fri, 10 Apr 2020 15:58:11 +0000 (11:58 -0400)
committerZhe Huang <zhehuang@research.att.com>
Fri, 10 Apr 2020 15:58:16 +0000 (11:58 -0400)
Signed-off-by: Zhe Huang <zhehuang@research.att.com>
Change-Id: I2adb050ca515bba4df421f24d5bab7ef55d3a59b

ci/Dockerfile-package

index afb8a74..9b12cf9 100644 (file)
 ################################################################################
 
 FROM buildpack-deps:stretch
-RUN apt-get update && apt-get -q -y install debhelper dpkg-dev build-essential rsync
+RUN apt-get update && apt-get -q -y install debhelper dpkg-dev build-essential rsync curl
 RUN mkdir /tmp/it-dep
 COPY . /tmp/it-dep
 WORKDIR /tmp/it-dep
 
+
+# Verify that the it/dep and the corresponding submodules are synced up
+ARG GH=get_helm.sh
+RUN curl --silent --show-error --connect-timeout 10 --retry 6 -L https://raw.githubusercontent.com/helm/helm/master/scripts/get -o ${GH}
+RUN bash ${GH}
+RUN helm init -c
+RUN ./bin/verify-ric-charts
+
 # building RIC deployment artifacts into a package
 RUN ./bin/package-ric-deployment-tools $(grep tag ./ci/package-tag.yaml | cut -f2 -d':')
 
@@ -31,4 +39,3 @@ RUN ./bin/package-ric-deployment-tools $(grep tag ./ci/package-tag.yaml | cut -f
 # assumption is that the target directory is mounted as a volume.
 #
 ENTRYPOINT [ "ci/publish.sh" ]
-