X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=installers%2Fcharm%2Fbuild.sh;h=edcad538353c30787c5b537cf0b3467bb8ffd251;hb=ef349d9224f93fcc3eeb7a26f71c6a128ffbf96a;hp=1c017ba1963dc9e2b13840b6671143c4c01c9e8a;hpb=f96d1cf00d281325f915bd966c28013243a31c10;p=osm%2Fdevops.git diff --git a/installers/charm/build.sh b/installers/charm/build.sh index 1c017ba1..edcad538 100755 --- a/installers/charm/build.sh +++ b/installers/charm/build.sh @@ -13,8 +13,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -set -eux - function build() { cd $1 && tox -e build && cd .. } @@ -24,7 +22,17 @@ 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 +# build 'ui-k8s' + +charms="nbi pla pol mon lcm ng-ui keystone" +charms="nbi" +if [ -z `which charmcraft` ]; then + sudo snap install charmcraft --beta +fi + +for charm_directory in $charms; do + echo "Building charm $charm_directory..." + cd $charm_directory + charmcraft build + cd .. +done