Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornachoparker <nacho@ownyourbits.com>2017-07-12 00:32:10 +0300
committernachoparker <nacho@ownyourbits.com>2017-07-12 22:00:10 +0300
commitc0a69703aeaf84f8bdad6e9d64d44d1719a77521 (patch)
tree3622898ec5209aaf6205efe445f38e61fafd02ac /batch.sh
parent33e01e7cd80c9b7c58bfafb20fbabb5ae94a9e87 (diff)
added automatic testing
Diffstat (limited to 'batch.sh')
-rwxr-xr-xbatch.sh16
1 files changed, 15 insertions, 1 deletions
diff --git a/batch.sh b/batch.sh
index 53019742..7fb33e80 100755
--- a/batch.sh
+++ b/batch.sh
@@ -12,6 +12,10 @@
source etc/library.sh # initializes $IMGNAME
IP=$1 # First argument is the QEMU Raspbian IP address
+
+
+## BUILDING
+
NC_INSTALL=etc/nextcloudpi-config.d/nc-nextcloud.sh
NC_CONFIG=etc/nextcloudpi-config.d/nc-init.sh
@@ -33,6 +37,8 @@ IMGNAME=$( basename "$IMGFILE" _base_prepare_lamp_nc-nextcloud_nc-init_nextcloud
[[ "$IMGNAME" != "" ]] || exit 1
+## PACKING
+
pack_image "$IMGFILE" "$IMGNAME.img"
md5sum $IMGNAME.tar.bz2
@@ -41,7 +47,15 @@ mkdir -p torrent/$IMGNAME && cp $IMGNAME.tar.bz2 torrent/$IMGNAME
create_torrent torrent/$IMGNAME
mkdir -p partial && mv NextCloudPi*.bz2 partial
-rm *.img
+
+## TESTING
+launch_qemu "$IMGNAME.img" &
+sleep 10
+wait_SSH $IP
+sleep 180 # Wait for the services to start. Improve this ( wait HTTP && trusted domains )
+tests/tests.py $IP
+
+rm -f *.img
# License
#