diff options
author | 2017-01-30 12:59:38 -0800 | |
---|---|---|
committer | 2017-01-30 13:20:32 -0800 | |
commit | ebc710af742601214491c5b2b9a4f6847d235d6c (patch) | |
tree | 49e8acc7c5b170d186ac65d88debe94a4d935b16 /scripts | |
parent | dcd560890f549f999e0ebe437dcc180bbc628d0b (diff) |
Initial ci-management upload
* Configure initial jobs and validate Jenkins environment
* Do not hook up packer build jobs at this time
Change-Id: I1818e8680d215318410f6beff5af054db03e7fa1
Signed-off-by: Andrew Grimberg <agrimberg@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/.gitignore | 7 | ||||
-rwxr-xr-x | scripts/check-unicode.sh | 29 |
2 files changed, 36 insertions, 0 deletions
diff --git a/scripts/.gitignore b/scripts/.gitignore new file mode 100644 index 000000000..c5ec4a4cb --- /dev/null +++ b/scripts/.gitignore @@ -0,0 +1,7 @@ +# Python +__pycache__/ +*.pyc + +# ODL Signer +.sign-artifacts +gpg-signatures diff --git a/scripts/check-unicode.sh b/scripts/check-unicode.sh new file mode 100755 index 000000000..db45f6ac6 --- /dev/null +++ b/scripts/check-unicode.sh @@ -0,0 +1,29 @@ +#!/bin/bash + +# @License EPL-1.0 <http://spdx.org/licenses/EPL-1.0> +############################################################################## +# Copyright (c) 2015 The Linux Foundation and others. +# +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Eclipse Public License v1.0 +# which accompanies this distribution, and is available at +# http://www.eclipse.org/legal/epl-v10.html +# +# Contributors: +# Thanh Ha (The Linux Foundation) - Initial implementation +############################################################################## + +directory="." +if [ ! -z "$1" ]; then + directory="$1" +fi + +echo "Scanning $directory" +for x in $(find $directory -type f); do + if LC_ALL=C grep -q '[^[:print:][:space:]]' "$x"; then + echo "file "$x" contains non-ascii characters" + exit 1 + fi +done + +echo "All files are ASCII only" |