diff options
author | 2021-12-18 17:11:43 +0000 | |
---|---|---|
committer | 2021-12-20 17:16:16 +0000 | |
commit | b39d6e1bcb9a4ce51119dcc424a5e92e8255a8ca (patch) | |
tree | fea49c22b5adf5a7ba246b58dbe14ec9d0038bd3 | |
parent | fc8a6edbf7d5f50096fc687ba964b464adcf2bb0 (diff) |
fix ambiguous dates in Changelog.md files
also add an optional call to 'python -m black'
Change-Id: I4e7a83ac4251d794304a1e728e0f2c183bf5e3a2
Signed-off-by: Hansen, Tony (th1395) <th1395@att.com>
Issue-ID: DCAEGEN2-3026
Signed-off-by: Hansen, Tony (th1395) <th1395@att.com>
Issue-ID: DCAEGEN2-2997
Signed-off-by: Hansen, Tony (th1395) <th1395@att.com>
-rw-r--r-- | dcaeapplib/ChangeLog.md | 2 | ||||
-rwxr-xr-x | mvn-phase-script.sh | 1 | ||||
-rw-r--r-- | scripts/mvn-phase-lib.sh | 20 |
3 files changed, 15 insertions, 8 deletions
diff --git a/dcaeapplib/ChangeLog.md b/dcaeapplib/ChangeLog.md index 538092c..68d99e4 100644 --- a/dcaeapplib/ChangeLog.md +++ b/dcaeapplib/ChangeLog.md @@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). -## [1.0.0] - 7/29/2019 +## [1.0.0] - 2019/7/29 * Upgrade to kubernetes only via the cbs client lib upgrade * Bump to a semver stable version because others (e.g., acumos dcae model runner) depend on this * Add python .gitignore diff --git a/mvn-phase-script.sh b/mvn-phase-script.sh index 7d432af..c924ebd 100755 --- a/mvn-phase-script.sh +++ b/mvn-phase-script.sh @@ -1,4 +1,5 @@ #!/bin/bash +# -*- indent-tabs-mode: nil -*- # vi: set expandtab: # ================================================================================ # Copyright (c) 2017 AT&T Intellectual Property. All rights reserved. diff --git a/scripts/mvn-phase-lib.sh b/scripts/mvn-phase-lib.sh index d4e1256..fa0e951 100644 --- a/scripts/mvn-phase-lib.sh +++ b/scripts/mvn-phase-lib.sh @@ -1,4 +1,5 @@ #!/bin/bash +# -*- indent-tabs-mode: nil -*- # vi: set expandtab: # ================================================================================ # Copyright (c) 2017-2021 AT&T Intellectual Property. All rights reserved. @@ -205,11 +206,11 @@ test_templates() done | awk '{print $2}' | sed -e 's/"//g' | sort -u | while read url do - curl -L -w '%{http_code}' -s -o /dev/null "$url" > "$TMP" - case $(< "$TMP") in - 2* ) ;; - * ) echo ">>>>>>>>>>>>>>>> $url not found <<<<<<<<<<<<<<<<" ;; - esac + curl -L -w '%{http_code}' -s -o /dev/null "$url" > "$TMP" + case $(< "$TMP") in + 2* ) ;; + * ) echo ">>>>>>>>>>>>>>>> $url not found <<<<<<<<<<<<<<<<" ;; + esac done echo Verify that the inputs are correct @@ -217,7 +218,7 @@ test_templates() find . -name '*-template' | sed -e 's/-template$//' | while read blueprint do - check-blueprint-vs-input -b "$blueprint" -i check-blueprint-vs-input/lib/sample-inputs.yaml || true + check-blueprint-vs-input -b "$blueprint" -i check-blueprint-vs-input/lib/sample-inputs.yaml || true done } @@ -228,7 +229,7 @@ run_tox_test() CURDIR=$(pwd) TOXINIS=$(find . -name "tox.ini") for TOXINI in "${TOXINIS[@]}"; do - DIR=$(echo "$TOXINI" | rev | cut -f2- -d'/' | rev) + DIR=$(dirname "$TOXINI") cd "${CURDIR}/${DIR}" rm -rf ./venv-tox ./.tox python3 -m venv ./venv-tox @@ -237,6 +238,11 @@ run_tox_test() pip3 install pip==9.0.3 pip3 install --upgrade argparse pip3 install tox==2.9.1 + if [ "$RUN_BLACK" = yes ] + then + pip3 install black + python3 -m black --line-length 120 --check . + fi pip3 freeze tox deactivate |