From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f51.google.com (mail-wm0-f51.google.com [74.125.82.51]) by dpdk.org (Postfix) with ESMTP id 8F4DFD4B4 for ; Fri, 25 Nov 2016 18:02:28 +0100 (CET) Received: by mail-wm0-f51.google.com with SMTP id t79so97125425wmt.0 for ; Fri, 25 Nov 2016 09:02:28 -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=OABqB2Hy0NLurIXSpXRO8ofygKpJ613g5wFnJD1xkThU8cDnBuecNz7VximIFRkk2N ZMlzTFASL99lfs6QFRZSB50tQ68uTF4AbNgsxFMRZ5JnRZnYkDUJveC9tsgNHt4qtpON bquD4w8naxSccNOdWwGKvFY/7SUFa0AFqg59eHFObdmlNyTuj0Fxm/MXb2e/EkzWyvdk sx4b8gBNB1Y/OOrsqPD8Dz3AYQbJA/4BreSNhRz06ya9QbOHhDm9Z23ntUnADIuIYV93 arHLbhMGLeL6JE9zfZ2En/fdVsVee7PmxdYyoD3i69RyREojJurfGasO9k2xZmjAbXWs wKyw== 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=blDjuHuPvbZEdPTK4dFSRc6QBK94m+eDNaTX1f6UhHlhc4W2b5qYUOq+RfUG5s3G5D kQPM434/K7gmH26c+Rt+UQ2VAPt2NlXrIXrmhjJJw2D14F4KLwHkl9GjhEgFgQ+ZTEo5 NEHXzZJsDq8RWlaKHhwYfmgkTxCwxrpHK2M3SC5ZYtU4XfMjUqaarey7Jkw0BmEcb74p /eAiweYB29OC8xGCMTgoizMqSxy/rVbYCZWcmtWLKF22jFsuW/gNnFIvaDR0+ksI1dEP CKaKhawLWu75EgcBLxu2sd4wA3L3sFp5f6HAio+5B5mAs7xp/4I630PFHb6xknMsaMW2 KbEw== X-Gm-Message-State: AKaTC01BbC0BoSVPL5CYca0TRTr66Izbi1T9kH42uNFoV29wRJlsLcrnVjI2S0+ViofX9Ad9 X-Received: by 10.28.153.10 with SMTP id b10mr8338449wme.103.1480093347997; Fri, 25 Nov 2016 09:02:27 -0800 (PST) Received: from XPS13.localdomain (184.203.134.77.rev.sfr.net. [77.134.203.184]) by smtp.gmail.com with ESMTPSA id ct7sm29707757wjc.2.2016.11.25.09.02.27 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 25 Nov 2016 09:02:27 -0800 (PST) From: Thomas Monjalon To: ci@dpdk.org Date: Fri, 25 Nov 2016 18:02:10 +0100 Message-Id: <1480093334-29957-4-git-send-email-thomas.monjalon@6wind.com> X-Mailer: git-send-email 2.7.0 In-Reply-To: <1480093334-29957-1-git-send-email-thomas.monjalon@6wind.com> References: <1480093334-29957-1-git-send-email-thomas.monjalon@6wind.com> Subject: [dpdk-ci] [PATCH 3/7] config: add loader and template X-BeenThere: ci@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: CI discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Nov 2016 17:02:28 -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