[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-deployment] branch master updated: adding coverage env
From: |
gnunet |
Subject: |
[taler-deployment] branch master updated: adding coverage env |
Date: |
Tue, 26 Nov 2019 23:45:42 +0100 |
This is an automated email from the git hooks/post-receive script.
marcello pushed a commit to branch master
in repository deployment.
The following commit(s) were added to refs/heads/master by this push:
new 5e25874 adding coverage env
5e25874 is described below
commit 5e25874c195b1dcdcee4315f39b595d22e895a4e
Author: Marcello Stanisci <address@hidden>
AuthorDate: Tue Nov 26 23:45:36 2019 +0100
adding coverage env
---
bin/taler-deployment | 59 +++++++++++++++++++++++++++++++++++++++++++++++++---
1 file changed, 56 insertions(+), 3 deletions(-)
diff --git a/bin/taler-deployment b/bin/taler-deployment
index 0be2637..93ada16 100755
--- a/bin/taler-deployment
+++ b/bin/taler-deployment
@@ -52,6 +52,7 @@ export
TALER_ENV_URL_MERCHANT_DONATIONS="https://donations.{envname}.taler.net/"
export TALER_ENV_URL_MERCHANT_SURVEY="https://survey.{envname}.taler.net/"
export TALER_ENV_URL_AUDITOR="https://auditor.{envname}.taler.net/"
export TALER_ENV_URL_BACKOFFICE="https://backoffice.{envname}.taler.net/"
+export TALER_COVERAGE={coverage}"
"""
@@ -75,7 +76,13 @@ def cli():
# map from environment name to currenct
-currmap = {"test": "TESTKUDOS", "demo": "KUDOS", "int": "INTKUDOS", "euro":
"EUR"}
+currmap = {
+ "test": "TESTKUDOS",
+ "coverage": "TESTKUDOS",
+ "demo": "KUDOS",
+ "int": "INTKUDOS",
+ "euro": "EUR"
+}
def update_checkout(r: Repo, p: Path):
@@ -109,8 +116,11 @@ def update_checkout(r: Repo, p: Path):
def default_configure(*extra):
pfx = Path.home() / "local"
+ extra_list = list(extra)
+ if int(os.environ.get("TALER_COVERAGE"))
+ extra_list.append("--enable-coverage")
subprocess.run(
- ["./configure", f"--prefix={pfx.as_posix()}"] + list(extra), check=True
+ ["./configure", f"--prefix={pfx.as_posix()}"] + extra_list, check=True
)
@@ -258,6 +268,39 @@ def get_repos(envname):
return []
if envname == "docs-builder":
return [Repo("docs", "git://gnunet.org/docs.git", [], build_docs)]
+ if envname == "coverage":
+ return [
+
+ Repo(
+ "libmicrohttpd",
+ "git://gnunet.org/libmicrohttpd.git",
+ [],
+ build_libmicrohttpd,
+ ),
+ Repo("gnunet", "git://gnunet.org/gnunet.git", [], build_gnunet),
+ Repo(
+ "exchange",
+ "git://git.taler.net/exchange",
+ ["gnunet", "libmicrohttpd"],
+ build_exchange,
+ ),
+
+ Repo(
+ "merchant",
+ "git://git.taler.net/merchant",
+ ["exchange", "libmicrohttpd"],
+ build_merchant,
+ ),
+
+ Repo(
+ "twister",
+ "git://git.taler.net/twister",
+ ["gnunet", "exchange"],
+ build_twister,
+ ),
+ ]
+
+
if envname == "euro":
return [
Repo(
@@ -377,7 +420,15 @@ def get_stale_repos(repos: List[Repo]) -> List[Repo]:
return stale
-allowed_envs = ("test", "int", "demo", "auditor-reporter", "docs-builder",
"euro")
+allowed_envs = (
+ "test",
+ "int",
+ "demo",
+ "auditor-reporter",
+ "docs-builder",
+ "euro",
+ "coverage"
+)
def load_envcfg():
@@ -462,6 +513,8 @@ def bootstrap() -> None:
timestamp=str(time.time()),
currency=currmap[envname],
curr_path=os.environ["PATH"],
+ coverage=1 if envname=="coverage" else 0
+
)
)
--
To stop receiving notification emails like this one, please contact
address@hidden.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [taler-deployment] branch master updated: adding coverage env,
gnunet <=