From 63a58db0eed6119ebceaeb74a5bd552a00c742c6 Mon Sep 17 00:00:00 2001
From: QiLiang <liangqi1@huawei.com>
Date: Tue, 20 Mar 2018 16:28:38 +0800
Subject: Update ci deploy sequences

- Add time consuming count for each scenarios
- Add istio for container4nfv

Change-Id: I3ed377492d6228e1c04362fee41f8b258f8ffd5a
Signed-off-by: QiLiang <liangqi1@huawei.com>
---
 ci/deploy.sh | 21 +++++++++++++++++----
 1 file changed, 17 insertions(+), 4 deletions(-)

(limited to 'ci')

diff --git a/ci/deploy.sh b/ci/deploy.sh
index 7d71ff3..dda7d8c 100755
--- a/ci/deploy.sh
+++ b/ci/deploy.sh
@@ -17,7 +17,20 @@
 
 set -ex
 
-../src/vagrant/kubeadm_basic/deploy.sh
-../src/vagrant/kubeadm_multus/deploy.sh
-../src/vagrant/kubeadm_virtlet/deploy.sh
-../src/vagrant/kubeadm_ovsdpdk/deploy.sh
+# Scenario sequence rules:
+#     - stable first
+#     - less time consuming first
+SCENARIOS="kubeadm_basic
+    kubeadm_multus
+    kubeadm_virtlet
+    kubeadm_ovsdpdk
+    kubeadm_istio
+"
+
+for SCENARIO in $SCENARIOS; do
+    START=$(date +%s)
+    ../src/vagrant/${SCENARIO}/deploy.sh
+    END=$(date +%s)
+    DIFF=$(( $END - $START ))
+    echo "Scenario $SCENARIO tooks $DIFF seconds."
+done
-- 
cgit 1.2.3-korg