blob: fc8d9230139b30c2ac0ba0264518d091fa7bfa1d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
#!/bin/bash
# Invocation
# $ taler-deployment-build [--coverage]
set -eu
cd $HOME/deployment
# like "git pull", but discard local changes
git fetch
git reset --hard FETCH_HEAD
if ! test $HOME/activate; then
echo "$HOME/activate not found. Although the compilation
is not affected, testcases will fail because the database
cannot be launched"
exit
fi
source $HOME/activate
# Check changes
$HOME/deployment/taler-build/invalidate.sh
# Build
MAKE="make -f $HOME/deployment/taler-build/Makefile"
cd $HOME/build_stamps
if test ${1:-notgiven} = "--coverage"; then
$MAKE lcov
else
$MAKE
fi
|