From 6c3b97b1a5f75e6abfb0822251daa3b9166970fb Mon Sep 17 00:00:00 2001 From: Marcello Stanisci Date: Tue, 20 Dec 2016 10:46:33 +0100 Subject: - --coverage option for main build script - sleep 3 secs after launching the db via ARM before compiling --- bin/taler-deployment-build | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'bin') 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 -- cgit v1.2.3