It also updates Python to 3.8 (default version).
https://alpinelinux.org/posts/Alpine-3.11.0-released.html
Change-Id: I1401c37adb71a6f7d37bd8724b93a058ecb68557
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:
- sudo apt-get -y install qemu-user-static
- 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
- sudo pip install tox
- sudo -E docker login -u="${DOCKER_USERNAME}" -p="${DOCKER_PASSWORD}"
- (cd .. && git clone https://github.com/estesp/manifest-tool)
- repo: _
dport:
container: alpine
- tag: '3.10'
+ tag: '3.11'
steps:
- name: opnfv/xtesting
containers:
for arch in ${arch};do
if [[ ${arch} == arm64 ]]; then
find . -name Dockerfile -exec sed -i \
- -e "s|alpine:3.10|multiarch/alpine:arm64-v3.10|g" {} +
+ -e "s|alpine:3.11|multiarch/alpine:arm64-v3.11|g" {} +
elif [[ ${arch} == arm ]]; then
find . -name Dockerfile -exec sed -i \
- -e "s|alpine:3.10|multiarch/alpine:armhf-v3.10|g" {} +
+ -e "s|alpine:3.11|multiarch/alpine:armhf-v3.11|g" {} +
fi
(cd docker && docker build "${build_opts[@]}" \
-t "${repo}/${image}:${arch}-${tag}" .)
-FROM alpine:3.10
+FROM alpine:3.11
ARG BRANCH=master
ARG OPENSTACK_TAG=master
/src/functest-xtesting && \
rm -r /src/functest-xtesting && \
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"]
name: 'robotframework'
args:
suites:
- - /usr/lib/python3.7/site-packages/xtesting/samples/HelloWorld.robot
+ - /usr/lib/python3.8/site-packages/xtesting/samples/HelloWorld.robot
variable:
- 'var01:foo'
- 'var02:bar'
name: 'behaveframework'
args:
suites:
- - /usr/lib/python3.7/site-packages/xtesting/samples/features/
+ - /usr/lib/python3.8/site-packages/xtesting/samples/features/
tags:
- foo
[tox]
-envlist = docs,pep8,pylint,yamllint,ansiblelint,bashate,py27,py37,cover,perm
+envlist = docs,pep8,pylint,yamllint,ansiblelint,bashate,py27,py38,cover,perm
skipsdist = True
[testenv]
xtesting/tests/unit
[testenv:docs]
-basepython = python3.7
+basepython = python3.8
commands =
doc8 README.rst api --ignore-path api/build
sphinx-build -W -b html api/ api/build
[testenv:pep8]
-basepython = python3.7
+basepython = python3.8
commands = flake8
[testenv:pylint]
-basepython = python3.7
+basepython = python3.8
whitelist_externals = bash
commands =
pylint --min-similarity-lines=10 \
--disable=locally-disabled --ignore-imports=y --reports=n xtesting
[testenv:yamllint]
-basepython = python3.7
+basepython = python3.8
files =
.travis.yml
ansible
yamllint -s {[testenv:yamllint]files}
[testenv:ansiblelint]
-basepython = python3.7
+basepython = python3.8
commands =
ansible-lint -x303 ansible/site.yml
commands = nosetests xtesting/tests/unit
[testenv:bashate]
-basepython = python3.7
+basepython = python3.8
files =
build.sh
commands = bashate {[testenv:bashate]files}
[testenv:bandit]
-basepython = python3.7
+basepython = python3.8
commands = bandit -r xtesting -x tests -n 5 -ll -s B602
[testenv:cover]
-basepython = python3.7
+basepython = python3.8
dirs =
xtesting/tests/unit/ci
xtesting/tests/unit/core
--cover-min-percentage 100 {[testenv:cover]dirs}
[testenv:perm]
-basepython = python3.7
+basepython = python3.8
whitelist_externals = bash
path=. -not -path './.tox/*' -not -path './.git/*' -not -path './doc/reveal.js/*'
commands =
behave===1.2.6
behave-html-formatter===0.9.4;python_version>='3.5'
pylint===1.9.5;python_version=='2.7'
-pylint===2.3.1;python_version=='3.7'
+pylint===2.4.4;python_version=='3.8'
+flake8===3.7.9
+nose===1.3.7