From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f47.google.com (mail-wm0-f47.google.com [74.125.82.47]) by dpdk.org (Postfix) with ESMTP id 406564AC7 for ; Mon, 5 Dec 2016 14:26:20 +0100 (CET) Received: by mail-wm0-f47.google.com with SMTP id f82so92830596wmf.1 for ; Mon, 05 Dec 2016 05:26:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:in-reply-to:references; bh=ofCG816M1SVW+zkmP2uq4T4Otmo8moYEnZ/yTQ+CG1g=; b=SrJkZO0j1s0CplKXm2qNStUK1U6Fdhnhe+vvudGLtslseEeZyKKMSNWzWgCCy8KCzG yR+Aa3i0JS5I9cw+/HpwZRxacKIWkv8k+4xtbtQB03hAIflS5V98aZblCJAm+YZcGMXx 0CVM/flgI83sO3LVS3wWdXzoznA0RDkBwAy9HAmXmXF/DYEE6JmkAKAftUW+Nq/4kOAG Rya+UjqwXaHFcEDBV37BHWgPmrt0y23YQMsGpXZF9a2QaWIKzm/YKhKSPBD1QrDS8fAP 4jl8xRLumonF62jOvudoI9z5phL3EfgSStgkpj2TcsqjABXfPRj+nd4504dzDSnhBVJB i96w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=ofCG816M1SVW+zkmP2uq4T4Otmo8moYEnZ/yTQ+CG1g=; b=ar+3OqlKwOGkfAJSuB7c7gZoE2G5Ryvawo/jspc8D1gS5lYGdMNs8MY/cCT/5pvsOS rdY/vLYPE08tjmHqUtuH7roeKtuL9lbeDjIbv9hC13pqpRNLaD9HS2kt3wT1oDCMrTmI rBDuJxmvpLqIyE6N/+BgWV7GWm3+YRu7K4xKjD30JaJwxKObezYG3f2bEb+x10XD4mut Ziks+hsf7Nf6bAxdpG3NgKXm9F7NXerWT+GaVP1lKJ1fpEFoIh4y7558OQi6qrHOKIkJ 48jGYi3ibYffBrzrNfG7Z0F0jJmEHFizXr6yD5gfEgerJEUg/a1y0lej+DM4olRznC3x TV2w== X-Gm-Message-State: AKaTC00Jsjw72aCtATzJjVSUDahJkVWlJTUGJIoTrc+80r9PHzCrTIBwXTAA6vL6MHK2C4LB X-Received: by 10.28.54.97 with SMTP id d94mr10200105wma.28.1480944379754; Mon, 05 Dec 2016 05:26:19 -0800 (PST) Received: from XPS13.localdomain (184.203.134.77.rev.sfr.net. [77.134.203.184]) by smtp.gmail.com with ESMTPSA id gk6sm20375434wjc.46.2016.12.05.05.26.18 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 05 Dec 2016 05:26:19 -0800 (PST) From: Thomas Monjalon To: ci@dpdk.org Date: Mon, 5 Dec 2016 14:26:09 +0100 Message-Id: <1480944373-10233-4-git-send-email-thomas.monjalon@6wind.com> X-Mailer: git-send-email 2.7.0 In-Reply-To: <1480944373-10233-1-git-send-email-thomas.monjalon@6wind.com> References: <1480599892-14190-1-git-send-email-thomas.monjalon@6wind.com> <1480944373-10233-1-git-send-email-thomas.monjalon@6wind.com> Subject: [dpdk-ci] [PATCH v4 3/7] config: add loader and template X-BeenThere: ci@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK CI discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Dec 2016 13:26:20 -0000 The configuration file will allow to set some environment-specific options and paths to be used by the scripts. Signed-off-by: Thomas Monjalon --- config/ci.config | 4 ++++ tools/load-ci-config.sh | 14 ++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 config/ci.config create mode 100644 tools/load-ci-config.sh diff --git a/config/ci.config b/config/ci.config new file mode 100644 index 0000000..2aeff04 --- /dev/null +++ b/config/ci.config @@ -0,0 +1,4 @@ +# Configuration template to be copied in +# /etc/dpdk/ci.config +# or ~/.config/dpdk/ci.config +# or .ciconfig diff --git a/tools/load-ci-config.sh b/tools/load-ci-config.sh new file mode 100644 index 0000000..9ec18b4 --- /dev/null +++ b/tools/load-ci-config.sh @@ -0,0 +1,14 @@ +#! /bin/echo must be loaded with . + +# Load DPDK CI config and allow override +# from system file +test ! -r /etc/dpdk/ci.config || + . /etc/dpdk/ci.config +# from user file +test ! -r ~/.config/dpdk/ci.config || + . ~/.config/dpdk/ci.config +# from local file +test ! -r $(dirname $(readlink -m $0))/../.ciconfig || + . $(dirname $(readlink -m $0))/../.ciconfig + +# The config files must export variables in the shell style -- 2.7.0