From f4e7eb0eb220b4504c49470c894e8ffcf483f978 Mon Sep 17 00:00:00 2001 From: "guillaume.lambert" Date: Tue, 10 May 2022 22:04:23 +0200 Subject: Stop bashing functest scripts Though bash is a good interactive user shell and apart portability concerns, many UN*X systems and GNU+Linux distributions now prefers Almquist or Kornshell variants for scripting in order to improve the system performance and maintenability. https://wiki.ubuntu.com/DashAsBinSh https://mywiki.wooledge.org/Bashism https://en.wikipedia.org/wiki/Almquist_shell Signed-off-by: guillaume.lambert Change-Id: I32c5490f9eab54e6cac594f3eac1e392edf8b272 (cherry picked from commit b9fedb6868306a6e3145b7ee851ea3a84353df9c) --- .travis.yml | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) (limited to '.travis.yml') diff --git a/.travis.yml b/.travis.yml index d9c06743c..6ac455c29 100644 --- a/.travis.yml +++ b/.travis.yml @@ -20,19 +20,19 @@ jobs: tox -e \ docs,pep8,pylint,yamllint,bashate,bandit,py38,cover - stage: build functest-core images - script: sudo -E bash build.sh + script: sudo -E sh build.sh env: - REPO="${DOCKER_USERNAME}" - amd64_dirs="docker/core" - arm64_dirs="" - arm_dirs="" - - script: sudo -E bash build.sh + - script: sudo -E sh build.sh env: - REPO="${DOCKER_USERNAME}" - amd64_dirs="" - arm64_dirs="docker/core" - arm_dirs="" - - script: sudo -E bash build.sh + - script: sudo -E sh build.sh env: - REPO="${DOCKER_USERNAME}" - amd64_dirs="" @@ -45,73 +45,73 @@ jobs: --template ${DOCKER_USERNAME}/functest-core:ARCH-zed \ --target ${DOCKER_USERNAME}/functest-core:zed - stage: build all functest images - script: sudo -E bash build.sh + script: sudo -E sh build.sh env: - REPO="${DOCKER_USERNAME}" - amd64_dirs="docker/healthcheck" - arm64_dirs="" - arm_dirs="" - - script: sudo -E bash build.sh + - script: sudo -E sh build.sh env: - REPO="${DOCKER_USERNAME}" - amd64_dirs="" - arm64_dirs="docker/healthcheck" - arm_dirs="" - - script: sudo -E bash build.sh + - script: sudo -E sh build.sh env: - REPO="${DOCKER_USERNAME}" - amd64_dirs="" - arm64_dirs="" - arm_dirs="docker/healthcheck" - - script: sudo -E bash build.sh + - script: sudo -E sh build.sh env: - REPO="${DOCKER_USERNAME}" - amd64_dirs="docker/smoke" - arm64_dirs="" - arm_dirs="" - - script: sudo -E bash build.sh + - script: sudo -E sh build.sh env: - REPO="${DOCKER_USERNAME}" - amd64_dirs="" - arm64_dirs="docker/smoke" - arm_dirs="" - - script: sudo -E bash build.sh + - script: sudo -E sh build.sh env: - REPO="${DOCKER_USERNAME}" - amd64_dirs="" - arm64_dirs="" - arm_dirs="docker/smoke" - - script: sudo -E bash build.sh + - script: sudo -E sh build.sh env: - REPO="${DOCKER_USERNAME}" - amd64_dirs="docker/benchmarking" - arm64_dirs="" - arm_dirs="" - - script: sudo -E bash build.sh + - script: sudo -E sh build.sh env: - REPO="${DOCKER_USERNAME}" - amd64_dirs="" - arm64_dirs="docker/benchmarking" - arm_dirs="" - - script: sudo -E bash build.sh + - script: sudo -E sh build.sh env: - REPO="${DOCKER_USERNAME}" - amd64_dirs="" - arm64_dirs="" - arm_dirs="docker/benchmarking" - - script: sudo -E bash build.sh + - script: sudo -E sh build.sh env: - REPO="${DOCKER_USERNAME}" - amd64_dirs="docker/vnf" - arm64_dirs="" - arm_dirs="" - - script: sudo -E bash build.sh + - script: sudo -E sh build.sh env: - REPO="${DOCKER_USERNAME}" - amd64_dirs="" - arm64_dirs="docker/vnf" - arm_dirs="" - - script: sudo -E bash build.sh + - script: sudo -E sh build.sh env: - REPO="${DOCKER_USERNAME}" - amd64_dirs="" @@ -139,37 +139,37 @@ jobs: --template ${DOCKER_USERNAME}/functest-vnf:ARCH-zed \ --target ${DOCKER_USERNAME}/functest-vnf:zed - stage: build all functest cntt images - script: sudo -E bash build.sh + script: sudo -E sh build.sh env: - REPO="${DOCKER_USERNAME}" - amd64_dirs="docker/smoke-cntt" - arm64_dirs="" - arm_dirs="" - - script: sudo -E bash build.sh + - script: sudo -E sh build.sh env: - REPO="${DOCKER_USERNAME}" - amd64_dirs="" - arm64_dirs="docker/smoke-cntt" - arm_dirs="" - - script: sudo -E bash build.sh + - script: sudo -E sh build.sh env: - REPO="${DOCKER_USERNAME}" - amd64_dirs="" - arm64_dirs="" - arm_dirs="docker/smoke-cntt" - - script: sudo -E bash build.sh + - script: sudo -E sh build.sh env: - REPO="${DOCKER_USERNAME}" - amd64_dirs="docker/benchmarking-cntt" - arm64_dirs="" - arm_dirs="" - - script: sudo -E bash build.sh + - script: sudo -E sh build.sh env: - REPO="${DOCKER_USERNAME}" - amd64_dirs="" - arm64_dirs="docker/benchmarking-cntt" - arm_dirs="" - - script: sudo -E bash build.sh + - script: sudo -E sh build.sh env: - REPO="${DOCKER_USERNAME}" - amd64_dirs="" -- cgit