Migrate to new NBI charm, and change in NGUI charm
[osm/devops.git] / installers / charm / build.sh
index 1c017ba..edcad53 100755 (executable)
@@ -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