jobs:
build:
docker:
- - image: circleci/python:3.9
+ - image: circleci/python:3.10
steps:
- checkout
- run:
- repo: _
dport:
container: alpine
- tag: 3.15
+ tag: 3.16
steps:
- name: build opnfv/functest-kubernetes-core
containers:
[ ! -z "${amd64_dirs}" ] &&
(docker rmi \
"${repo}/functest-kubernetes-core:amd64-v1.24" \
- alpine:3.15 || true)
+ alpine:3.16 || true)
find . -name Dockerfile -exec git checkout {} +
find . -name Dockerfile -exec sed -i \
- -e "s|alpine:3.15|arm64v8/alpine:3.15|g" {} +
+ -e "s|alpine:3.16|arm64v8/alpine:3.16|g" {} +
find . -name Dockerfile -exec sed -i \
-e "s|opnfv/functest-kubernetes-core:v1.24|\
${repo}/functest-kubernetes-core:arm64-v1.24|g" {} +
done
[ ! -z "${arm64_dirs}" ] &&
(docker rmi "${repo}/functest-kubernetes-core:arm64-v1.24" \
- arm64v8/alpine:3.15 || true)
+ arm64v8/alpine:3.16 || true)
find . -name Dockerfile -exec git checkout {} +
find . -name Dockerfile -exec sed -i \
- -e "s|alpine:3.15|arm32v7/alpine:3.15|g" {} +
+ -e "s|alpine:3.16|arm32v7/alpine:3.16|g" {} +
find . -name Dockerfile -exec sed -i \
-e "s|opnfv/functest-kubernetes-core:v1.24|\
${repo}/functest-kubernetes-core:arm-v1.24|g" {} +
done
[ ! -z "${arm_dirs}" ] &&
(docker rmi "${repo}/functest-kubernetes-core:arm-v1.24" \
- arm32v7/alpine:3.15 || true)
+ arm32v7/alpine:3.16 || true)
find . -name Dockerfile -exec git checkout {} +
exit $?
-FROM alpine:3.15
+FROM alpine:3.16
ARG BRANCH=stable/v1.24
ARG OPENSTACK_TAG=stable/yoga
case $(uname -m) in aarch*|arm*) \
sed -i -E /^PyNaCl=/d /src/requirements/upper-constraints.txt && \
apk add --no-cache py3-pynacl ;; esac && \
- sed -i -E /^six=/d /src/requirements/upper-constraints.txt && \
- sed -i -E /^distlib=/d /src/requirements/upper-constraints.txt && \
- sed -i -E /^packaging=/d /src/requirements/upper-constraints.txt && \
- apk --no-cache add --update py3-distlib\>=0.3.1 \
- --repository=http://dl-cdn.alpinelinux.org/alpine/edge/main && \
git init /src/functest-kubernetes && \
(cd /src/functest-kubernetes && \
git fetch --tags https://gerrit.opnfv.org/gerrit/functest-kubernetes $BRANCH && \
-c/src/requirements/upper-constraints.txt \
/src/functest-kubernetes && \
(cd /src/rally && patch -p1 < /tmp/Switch-to-threading.Thread-for-Rally-tasks.patch) && \
- (cd /usr/lib/python3.9/site-packages/xrally_kubernetes/ && \
+ (cd /usr/lib/python3.10/site-packages/xrally_kubernetes/ && \
patch -p2 < /tmp/Try-a-quick-fix-vs-asynchronuous-issues.patch) && \
rm -rf /src/functest-kubernetes /tmp/Switch-to-threading.Thread-for-Rally-tasks.patch && \
bash -c "mkdir -p /var/lib/xtesting /home/opnfv" && \
[tox]
-envlist = pep8,pylint,yamllint,bashate,py39,bandit,perm
+envlist = pep8,pylint,yamllint,bashate,py310,bandit,perm
[testenv]
pip_version = pip==20.2.4
usedevelop = True
deps =
- -chttps://git.opnfv.org/functest/plain/upper-constraints.txt
+ -chttps://git.opnfv.org/functest/plain/upper-constraints.txt?h=stable/yoga
-c{env:UPPER_CONSTRAINTS_FILE:https://opendev.org/openstack/requirements/raw/branch/master/upper-constraints.txt}
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
functest_kubernetes
[testenv:pep8]
-basepython = python3.9
+basepython = python3.10
commands = flake8
[testenv:pylint]
-basepython = python3.9
+basepython = python3.10
commands = pylint \
--ignore-imports=y --min-similarity-lines=10 \
--disable=locally-disabled,wrong-import-order --reports=n functest_kubernetes
[testenv:yamllint]
-basepython = python3.9
+basepython = python3.10
files =
.travis.yml
docker
yamllint {[testenv:yamllint]files}
[testenv:bandit]
-basepython = python3.9
+basepython = python3.10
commands = bandit -r functest_kubernetes -x tests -n 5 -ll
[testenv:py37]
commands = nosetests functest_kubernetes
[testenv:bashate]
-basepython = python3.9
+basepython = python3.10
files =
build.sh
functest_kubernetes/ci/download_images.sh
commands = bashate -e E005,E006,E042,E043 {[testenv:bashate]files}
[testenv:perm]
-basepython = python3.9
+basepython = python3.10
whitelist_externals = bash
path=. -not -path './.tox/*' -not -path './.git/*' -not -path './doc/pres/reveal.js/*'
commands =