It also updates Python to 3.8 (default version).
https://alpinelinux.org/posts/Alpine-3.11.0-released.html
Change-Id: I3bbfdb76d2fb71f9a426e4fe7dacace0917e2070
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
jobs:
build:
docker:
- - image: circleci/python:3.7.4
+ - image: circleci/python:3.8
steps:
- checkout
- run:
before_script:
- sudo add-apt-repository -y ppa:deadsnakes/ppa
- sudo apt-get update
- - sudo apt-get install python3.7 python3.7-dev
+ - sudo apt-get install python3.8 python3.8-dev python3.8-distutils
- sudo pip install tox
- sudo -E docker login -u="${DOCKER_USERNAME}" -p="${DOCKER_PASSWORD}"
- (cd .. && git clone https://github.com/estesp/manifest-tool)
jobs:
include:
- stage: run unit tests
- script: tox -e pep8,pylint,yamllint,ansiblelint,bashate,py27,py37
+ script: tox -e pep8,pylint,yamllint,ansiblelint,bashate,py27,py38
- stage: build functest-kubernetes-core image
script: sudo -E bash build.sh
env:
- repo: _
dport:
container: golang
- tag: 1.13-alpine3.10
+ tag: 1.13-alpine3.11
steps:
- name: build opnfv/functest-kubernetes-core
containers:
[ ! -z "${amd64_dirs}" ] &&
(docker rmi \
"${repo}/functest-kubernetes-core:amd64-latest" \
- golang:1.13-alpine3.10 || true)
+ golang:1.13-alpine3.11 || true)
find . -name Dockerfile -exec git checkout {} +
find . -name Dockerfile -exec sed -i \
- -e "s|golang:1.13-alpine3.10|arm64v8/golang:1.13-alpine3.10|g" {} +
+ -e "s|golang:1.13-alpine3.11|arm64v8/golang:1.13-alpine3.11|g" {} +
find . -name Dockerfile -exec sed -i \
-e "s|opnfv/functest-kubernetes-core|\
${repo}/functest-kubernetes-core:arm64-latest|g" {} +
done
[ ! -z "${arm64_dirs}" ] &&
(docker rmi "${repo}/functest-kubernetes-core:arm64-latest" \
- arm64v8/golang:1.13-alpine3.10 || true)
+ arm64v8/golang:1.13-alpine3.11 || true)
find . -name Dockerfile -exec git checkout {} +
exit $?
-FROM golang:1.13-alpine3.10
+FROM golang:1.13-alpine3.11
ARG BRANCH=master
ARG OPENSTACK_TAG=master
printf "[database]\nconnection = 'sqlite:////var/lib/rally/database/rally.sqlite'" > /etc/rally/rally.conf && \
mkdir -p /var/lib/rally/database && rally db create && \
apk del .build-deps
-COPY logging.ini /usr/lib/python3.7/site-packages/xtesting/ci/logging.ini
+COPY logging.ini /usr/lib/python3.8/site-packages/xtesting/ci/logging.ini
CMD ["run_tests", "-t", "all"]
mv _output/bin/* /usr/local/bin) && \
rm -r /src/k8s.io && \
apk del .build-deps
-COPY testcases.yaml /usr/lib/python3.7/site-packages/xtesting/ci/testcases.yaml
+COPY testcases.yaml /usr/lib/python3.8/site-packages/xtesting/ci/testcases.yaml
CMD ["run_tests", "-t", "all"]
FROM opnfv/functest-kubernetes-healthcheck
-COPY testcases.yaml /usr/lib/python3.7/site-packages/xtesting/ci/testcases.yaml
+COPY testcases.yaml /usr/lib/python3.8/site-packages/xtesting/ci/testcases.yaml
CMD ["run_tests", "-t", "all"]
[tox]
-envlist = pep8,pylint,yamllint,ansiblelint,bashate,py27,py37,bandit,perm
+envlist = pep8,pylint,yamllint,ansiblelint,bashate,py27,py38,bandit,perm
[testenv]
usedevelop = True
functest_kubernetes
[testenv:pep8]
-basepython = python3.7
+basepython = python3.8
commands = flake8
[testenv:pylint]
-basepython = python3.7
+basepython = python3.8
commands = pylint --disable=locally-disabled --reports=n functest_kubernetes
[testenv:yamllint]
-basepython = python3.7
+basepython = python3.8
files =
.travis.yml
docker
yamllint {[testenv:yamllint]files}
[testenv:ansiblelint]
-basepython = python3.7
+basepython = python3.8
commands = ansible-lint -x303 ansible/site.yml
[testenv:bandit]
-basepython = python3.7
+basepython = python3.8
commands = bandit -r functest_kubernetes -x tests -n 5 -ll
[testenv:py37]
commands = nosetests functest_kubernetes
[testenv:bashate]
-basepython = python3.7
+basepython = python3.8
files =
build.sh
commands = bashate -e E005,E006,E042,E043 {[testenv:bashate]files}
[testenv:perm]
-basepython = python3.7
+basepython = python3.8
whitelist_externals = bash
path=. -not -path './.tox/*' -not -path './.git/*' -not -path './doc/pres/reveal.js/*'
commands =