From 96b969b6c0ef0fe3869329cc25371ef3ae72e7ce Mon Sep 17 00:00:00 2001 From: Frode Nordahl Date: Mon, 4 Mar 2019 08:16:47 +0100 Subject: [PATCH] Add gate jobs Set ``toxworkdir`` to avoud charm-tools build recursion. Change-Id: Ia9ed0f5e8e17d9d0ffdf3e650c76f2c36938244d --- .gitreview | 4 ++++ .travis.yml | 9 --------- .zuul.yaml | 3 +++ tox.ini | 29 +++-------------------------- 4 files changed, 10 insertions(+), 35 deletions(-) create mode 100644 .gitreview delete mode 100644 .travis.yml create mode 100644 .zuul.yaml diff --git a/.gitreview b/.gitreview new file mode 100644 index 0000000..2069f65 --- /dev/null +++ b/.gitreview @@ -0,0 +1,4 @@ +[gerrit] +host=review.openstack.org +port=29418 +project=openstack/charm-layer-ceph.git diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index bb948ef..0000000 --- a/.travis.yml +++ /dev/null @@ -1,9 +0,0 @@ -language: python -python: - - "3.6" -install: pip install tox-travis charm-tools -env: - - ENV=pep8 - - ENV=build -script: - - tox -e $ENV --workdir /tmp/tox diff --git a/.zuul.yaml b/.zuul.yaml new file mode 100644 index 0000000..c238c54 --- /dev/null +++ b/.zuul.yaml @@ -0,0 +1,3 @@ +- project: + templates: + - python-charm-layer-jobs diff --git a/tox.ini b/tox.ini index 16b9a28..d4f817f 100644 --- a/tox.ini +++ b/tox.ini @@ -1,9 +1,10 @@ [tox] skipsdist = True envlist = pep8 +toxworkdir = /tmp/tox [testenv] -basepython = python2.7 +basepython = python3 setenv = VIRTUAL_ENV={envdir} PYTHONHASHSEED=0 TERM=linux @@ -18,37 +19,13 @@ whitelist_externals = /bin/true /bin/echo /bin/mkdir [testenv:build] commands = /bin/echo 'WARNING: *build* target is for testing only.' - mkdir -p {envdir}/tmp + /bin/mkdir -p {envdir}/tmp charm-build --log-level DEBUG -o {envdir}/tmp/build . [testenv:venv] basepython = python3 commands = {posargs} -[testenv:py27] -basepython = python2.7 -deps = -r{toxinidir}/test-requirements.txt -# TODO: Need to write unit tests then remove the following command. -commands = /bin/true - -[testenv:py34] -basepython = python3.4 -deps = -r{toxinidir}/test-requirements.txt -# TODO: Need to write unit tests then remove the following command. -commands = /bin/true - -[testenv:py35] -basepython = python3.5 -deps = -r{toxinidir}/test-requirements.txt -# TODO: Need to write unit tests then remove the following command. -commands = /bin/true - -[testenv:py36] -basepython = python3.6 -deps = -r{toxinidir}/test-requirements.txt -# TODO: Need to write unit tests then remove the following command. -commands = /bin/true - [testenv:pep8] basepython = python3 commands = flake8 --ignore=E402 actions/ reactive/