From 5c370b551b0696813f4c47079a876d3ee731d178 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Thu, 22 Feb 2018 18:14:56 +0100 Subject: add playground confs --- taler-build/Makefile | 4 ++++ taler-build/invalidate.sh | 4 ++++ taler-build/update_playground.sh | 17 +++++++++++++++++ 3 files changed, 25 insertions(+) create mode 100755 taler-build/update_playground.sh (limited to 'taler-build') diff --git a/taler-build/Makefile b/taler-build/Makefile index ca05119..98f7fc7 100644 --- a/taler-build/Makefile +++ b/taler-build/Makefile @@ -53,6 +53,10 @@ survey-stamp: deployment-stamp ./update_survey.sh touch $@ +playground-stamp: deployment-stamp + ./update_playground.sh + touch $@ + lcov: gnunet-stamp deployment-stamp export PATH=${HOME}/local/bin:${PATH} ./update_exchange.sh --coverage diff --git a/taler-build/invalidate.sh b/taler-build/invalidate.sh index 13080dc..7f8a016 100755 --- a/taler-build/invalidate.sh +++ b/taler-build/invalidate.sh @@ -3,6 +3,10 @@ set -eu components="deployment exchange merchant bank gnurl donations blog landing gnunet libmicrohttpd survey backoffice" +if [[ "$TALER_ENV_NAME" = test ]]; then; + components="$components playground" +fi + for component in $components ; do cd $HOME/$component git fetch diff --git a/taler-build/update_playground.sh b/taler-build/update_playground.sh new file mode 100755 index 0000000..7500ec8 --- /dev/null +++ b/taler-build/update_playground.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +set -eu + +cd $HOME/playground/ +git clean -fxd + +git fetch +# reset to updated upstream branch, but only if we're tracking a branch +branch=$(git rev-parse --abbrev-ref --symbolic-full-name @{u} 2>/dev/null || echo HEAD) +git reset --hard "$branch" + +git submodule update --init --force + +./bootstrap +./configure --prefix="$HOME/local" +make install -- cgit v1.2.3