diff options
author | Cédric Ollivier <cedric.ollivier@orange.com> | 2019-06-14 17:40:53 +0200 |
---|---|---|
committer | Cédric Ollivier <cedric.ollivier@orange.com> | 2019-06-15 12:13:42 +0200 |
commit | 85d329e616a3577f903b00cafd41671d8d5c944d (patch) | |
tree | 01943dca727179611657bc57953101c3f1f31d62 | |
parent | 469ef8b11ada3e8313647abc5d894cc12e498176 (diff) |
Turn all bashate warnings as errors
Change-Id: Ic350ed8269347f5853a6d7b4e75cfccba6d85dcf
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit 12b1a3258219cd301866ea79924e08cfb2a7420e)
-rw-r--r-- | build.sh | 12 | ||||
-rw-r--r-- | tox.ini | 2 |
2 files changed, 10 insertions, 4 deletions
@@ -24,7 +24,9 @@ build_opts=(--pull=true --no-cache --force-rm=true) find . -name Dockerfile -exec sed -i \ -e "s|opnfv/functest-core:hunter|${repo}/functest-core:amd64-hunter|g" {} + find . -name Dockerfile -exec sed -i \ - -e "s|opnfv/functest-tempest:hunter|${repo}/functest-tempest:amd64-hunter|g" {} + + -e \ + "s|opnfv/functest-tempest:hunter|${repo}/functest-tempest:amd64-hunter|g" \ + {} + for dir in ${amd64_dirs}; do (cd "${dir}" && docker build "${build_opts[@]}" \ @@ -42,7 +44,9 @@ find . -name Dockerfile -exec sed -i \ find . -name Dockerfile -exec sed -i \ -e "s|opnfv/functest-core:hunter|${repo}/functest-core:arm64-hunter|g" {} + find . -name Dockerfile -exec sed -i \ - -e "s|opnfv/functest-tempest:hunter|${repo}/functest-tempest:arm64-hunter|g" {} + + -e \ + "s|opnfv/functest-tempest:hunter|${repo}/functest-tempest:arm64-hunter|g" \ + {} + for dir in ${arm64_dirs}; do (cd "${dir}" && docker build "${build_opts[@]}" \ -t "${repo}/functest-${dir##**/}:arm64-hunter" .) @@ -60,7 +64,9 @@ find . -name Dockerfile -exec sed -i \ find . -name Dockerfile -exec sed -i \ -e "s|opnfv/functest-core:hunter|${repo}/functest-core:arm-hunter|g" {} + find . -name Dockerfile -exec sed -i \ - -e "s|opnfv/functest-tempest:hunter|${repo}/functest-tempest:arm-hunter|g" {} + + -e \ + "s|opnfv/functest-tempest:hunter|${repo}/functest-tempest:arm-hunter|g" \ + {} + for dir in ${arm_dirs}; do (cd "${dir}" && docker build "${build_opts[@]}" \ -t "${repo}/functest-${dir##**/}:arm-hunter" .) @@ -73,7 +73,7 @@ files = functest/ci/convert_images.sh functest/ci/download_images.sh build.sh -commands = bashate {[testenv:bashate]files} +commands = bashate -e E005,E006,E042,E043 {[testenv:bashate]files} [testenv:bandit] |