diff options
author | Marcello Stanisci <marcello.stanisci@inria.fr> | 2016-12-20 10:46:33 +0100 |
---|---|---|
committer | Marcello Stanisci <marcello.stanisci@inria.fr> | 2016-12-20 10:46:33 +0100 |
commit | 6c3b97b1a5f75e6abfb0822251daa3b9166970fb (patch) | |
tree | 8a54a01217250de0a6a4f762aa69324ccc637c3b /bin | |
parent | c3e0d433065eca300d536c936b6327d7fe297223 (diff) | |
download | deployment-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-x | bin/taler-deployment-build | 16 |
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 |