X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=installers%2Fcharm%2Fbuild.sh;h=459da1328ac3277a1066c5563b59b83d83e0372a;hb=cb7dc67d460141b98472561ce080cf378c9cd785;hp=1c017ba1963dc9e2b13840b6671143c4c01c9e8a;hpb=b1a1c46a60aa4981c7b01e9d6ff95958db7749a5;p=osm%2Fdevops.git diff --git a/installers/charm/build.sh b/installers/charm/build.sh index 1c017ba1..459da132 100755 --- a/installers/charm/build.sh +++ b/installers/charm/build.sh @@ -13,18 +13,16 @@ # See the License for the specific language governing permissions and # limitations under the License. -set -eux - function build() { - cd $1 && tox -e build && cd .. + cd $1 && tox -qe build && cd .. } -build 'lcm-k8s' -build 'mon-k8s' -build 'nbi-k8s' -build 'pol-k8s' -build 'ro-k8s' -build 'ui-k8s' -build 'keystone' -build 'ng-ui' -build 'pla' \ No newline at end of file +charms="ro nbi pla pol mon lcm ng-ui grafana prometheus mongodb-exporter kafka-exporter mysqld-exporter" +if [ -z `which charmcraft` ]; then + sudo snap install charmcraft --classic +fi + +for charm_directory in $charms; do + build $charm_directory +done +wait \ No newline at end of file