summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorMarcello Stanisci <marcello.stanisci@inria.fr>2016-12-20 10:46:33 +0100
committerMarcello Stanisci <marcello.stanisci@inria.fr>2016-12-20 10:46:33 +0100
commit6c3b97b1a5f75e6abfb0822251daa3b9166970fb (patch)
tree8a54a01217250de0a6a4f762aa69324ccc637c3b /bin
parentc3e0d433065eca300d536c936b6327d7fe297223 (diff)
downloaddeployment-6c3b97b1a5f75e6abfb0822251daa3b9166970fb.tar.gz
deployment-6c3b97b1a5f75e6abfb0822251daa3b9166970fb.tar.bz2
deployment-6c3b97b1a5f75e6abfb0822251daa3b9166970fb.zip
- --coverage option for main build script
- sleep 3 secs after launching the db via ARM before compiling
Diffstat (limited to 'bin')
-rwxr-xr-xbin/taler-deployment-build16
1 files changed, 14 insertions, 2 deletions
diff --git a/bin/taler-deployment-build b/bin/taler-deployment-build
index c76213a..7c66ef0 100755
--- a/bin/taler-deployment-build
+++ b/bin/taler-deployment-build
@@ -1,5 +1,8 @@
#!/bin/bash
+# Invocation
+# $ taler-deployment-build [--coverage]
+
set -eu
cd $HOME/deployment
@@ -17,13 +20,22 @@ fi
source $HOME/activate
-# Start database
+# Start database: needed because testcases run after compilation
+# need db
taler-deployment-arm -s
taler-deployment-arm -i taler-postgres-standalone
+# Make sure db is properly launched
+sleep 3
+
cd $HOME/deployment/taler-build
./invalidate.sh
-make
+
+if test ${1:-notgiven} = "--coverage"; then
+ make lcov
+else
+ make
+fi
# Stop database
taler-deployment-arm -k taler-postgres-standalone