include:
- stage: run unit tests
script: >
- tox -e docs,pep8,pylint,yamllint,ansiblelint,bashate,py38,cover
+ tox -e docs,pep8,pylint,yamllint,ansiblelint,bashate,py39,cover
- stage: build xtesting images
script: sudo -E bash build.sh
env:
docker_tags:
- latest:
branch: master
- dependency: '3.13'
+ dependency: '3.14'
builds:
dependency:
repo: _
-FROM alpine:3.13
+FROM alpine:3.14
ARG BRANCH=master
ARG OPENSTACK_TAG=master
/src/functest-xtesting && \
rm -r /src/functest-xtesting upper-constraints.txt && \
apk del .build-deps
-COPY testcases.yaml /usr/lib/python3.8/site-packages/xtesting/ci/testcases.yaml
+COPY testcases.yaml /usr/lib/python3.9/site-packages/xtesting/ci/testcases.yaml
CMD ["run_tests", "-t", "all"]
args:
suites:
- >-
- /usr/lib/python3.8/site-packages/xtesting/samples/HelloWorld.robot
+ /usr/lib/python3.9/site-packages/xtesting/samples/HelloWorld.robot
variable:
- 'var01:foo'
- 'var02:bar'
name: behaveframework
args:
suites:
- - /usr/lib/python3.8/site-packages/xtesting/samples/features
+ - /usr/lib/python3.9/site-packages/xtesting/samples/features
tags:
- foo
- case_name: eighth
run:
name: ansible
args:
- private_data_dir: /usr/lib/python3.8/site-packages/xtesting/samples
+ private_data_dir: /usr/lib/python3.9/site-packages/xtesting/samples
playbook: helloworld.yml
java -jar target/mts-${MTS_TAG}-installer.jar -options /src/mts-installer.properties) && \
rm -rf /root/.m2/ ${APP_FOLDER}/tutorial /src/mts-installer.properties /src/git-mts && \
apk del .build-deps;; esac
-COPY testcases.yaml /usr/lib/python3.8/site-packages/xtesting/ci/testcases.yaml
+COPY testcases.yaml /usr/lib/python3.9/site-packages/xtesting/ci/testcases.yaml
CMD ["run_tests", "-t", "all"]
run:
name: 'mts'
args:
- test_file: /usr/lib/python3.8/site-packages/xtesting/samples/mts/test.xml
+ test_file: /usr/lib/python3.9/site-packages/xtesting/samples/mts/test.xml
testcases:
- Pause_5_sec
max_duration: 2 # in seconds
[tox]
-envlist = docs,pep8,pylint,yamllint,ansiblelint,bashate,py38,cover,perm
+envlist = docs,pep8,pylint,yamllint,ansiblelint,bashate,py39,cover,perm
skipsdist = True
[testenv]
xtesting/tests/unit
[testenv:docs]
-basepython = python3.8
+basepython = python3.9
commands =
doc8 README.rst api --ignore-path api/build
sphinx-build -W -b html api/ api/build
[testenv:pep8]
-basepython = python3.8
+basepython = python3.9
commands = flake8
[testenv:pylint]
-basepython = python3.8
+basepython = python3.9
whitelist_externals = bash
commands =
pylint --min-similarity-lines=10 \
--disable=locally-disabled --ignore-imports=y --reports=n --extension-pkg-whitelist=lxml xtesting
[testenv:yamllint]
-basepython = python3.8
+basepython = python3.9
files =
.travis.yml
ansible
yamllint -s {[testenv:yamllint]files}
[testenv:ansiblelint]
-basepython = python3.8
+basepython = python3.9
commands =
ansible-lint -x303,305,306 ansible/site.yml
commands = nosetests xtesting/tests/unit
[testenv:bashate]
-basepython = python3.8
+basepython = python3.9
files =
build.sh
commands = bashate {[testenv:bashate]files}
[testenv:bandit]
-basepython = python3.8
+basepython = python3.9
commands = bandit -r xtesting -x tests -n 5 -ll -s B602
[testenv:cover]
-basepython = python3.8
+basepython = python3.9
dirs =
xtesting/tests/unit/ci
xtesting/tests/unit/core
--cover-min-percentage 100 {[testenv:cover]dirs}
[testenv:perm]
-basepython = python3.8
+basepython = python3.9
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.4.4;python_version=='3.8'
+pylint===2.4.4;python_version=='3.9'
flake8===3.9.2
nose===1.3.7
ansible-lint===4.3.7