From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wj0-f171.google.com (mail-wj0-f171.google.com [209.85.210.171]) by dpdk.org (Postfix) with ESMTP id 107FF58C8 for ; Thu, 1 Dec 2016 17:59:10 +0100 (CET) Received: by mail-wj0-f171.google.com with SMTP id qp4so210229777wjc.3 for ; Thu, 01 Dec 2016 08:59:10 -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=Qp/Rqac9ccGnySRVAeVBGnLapf6anYwavxOC62xMjMMl3OkACNGHlk51fda00wFey9 AHphKYjudK+c58bCx3+XSNP2TYljRy1l9HSDg25b9J3YF6K2j8UHlDpq87SDZznQVkgG 5I21JP7s+M/OtqlK1h8M0f+NquOy/WHOeVCnmq0Q78cPiRvNC+VCd2TqZyfE1doyGr5V sPQ9xNQX24J/XW3NW0950xCDYmBNHWdOAhZIoZ8GBs716RwkY2lPkTGth300WwNLMRZU FukGZuxBF6tZWxyXcVbwvSgoxsR4zUwgyF9G+mtgQ/NyK1TV+3VniUFnqudDzUpgYU4V GFgQ== 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=gyTKb+dVAXSIrdb/SqFxEdRMf35KytLkHMuRDhLmT0aQhOSiQ0dGOzTC8nWwuCQVJv j440VXFRUGNe34zhTl+OZCOgHCqv5Th+o5Fj0dofZxm13RMvJdi8chR6wKtOoB6lZei1 RJNwaR9HKG8DjdDX2XyZYwF3x+M5JhuWv/4zs05Gq2vyRaTLdMd/2JT53onOPMeylOlL eeVv2sDCs1FPoGWFNAGmzyR6vhjKgptE6ZPxue6gDprYUkUu31VYnqEWCcZTnKCRctHY nidatiTaLic8IRqgQCE4cJbPUQmqFhYxCLxdynt2Z1v5FHo5DTNeILWQsUCiUy4h89St Blmw== X-Gm-Message-State: AKaTC01gR/d9mhQYE6hZl/yLYBbNN1m4TRTUOjgmTphauYPI7ZN4wiL/VO2qx5ACWvgIldJc X-Received: by 10.194.41.163 with SMTP id g3mr33752931wjl.162.1480611549462; Thu, 01 Dec 2016 08:59:09 -0800 (PST) Received: from XPS13.localdomain (184.203.134.77.rev.sfr.net. [77.134.203.184]) by smtp.gmail.com with ESMTPSA id v202sm14107979wmv.8.2016.12.01.08.59.08 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 01 Dec 2016 08:59:08 -0800 (PST) From: Thomas Monjalon To: ci@dpdk.org Date: Thu, 1 Dec 2016 17:58:57 +0100 Message-Id: <1480611541-17439-4-git-send-email-thomas.monjalon@6wind.com> X-Mailer: git-send-email 2.7.0 In-Reply-To: <1480611541-17439-1-git-send-email-thomas.monjalon@6wind.com> References: <1480599892-14190-1-git-send-email-thomas.monjalon@6wind.com> <1480611541-17439-1-git-send-email-thomas.monjalon@6wind.com> Subject: [dpdk-ci] [PATCH v3 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: Thu, 01 Dec 2016 16:59:10 -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