From 525e0d324799c3573b0fb339d713718f1bfa88d4 Mon Sep 17 00:00:00 2001 From: Frode Nordahl Date: Tue, 25 Jun 2019 07:03:00 +0200 Subject: [PATCH] Add per-repo gerrit and zuul configuration Remove ``.travis.yml`` after upstreaming to OpenStack. Add missing ``py35`` target in tox.ini. Note that upstream gate will be running py36 unit test but we do want to keep the ``py35`` target for a broader set of test run in the Canonical CI. Hold gate test for Ubuntu Disco pending resolution of LP: #1824112 Change-Id: I17925206dbe4d3b3d51615552ca2afea42a049a6 --- .gitreview | 4 ++++ .travis.yml | 6 ------ .zuul.yaml | 4 ++++ src/tests/tests.yaml | 5 ++++- tox.ini | 5 +++++ 5 files changed, 17 insertions(+), 7 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..33bc4e3 --- /dev/null +++ b/.gitreview @@ -0,0 +1,4 @@ +[gerrit] +host=review.opendev.org +port=29418 +project=openstack/charm-octavia-diskimage-retrofit.git diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index e1feabf..0000000 --- a/.travis.yml +++ /dev/null @@ -1,6 +0,0 @@ -language: python -python: - - "3.6" -install: pip install tox-travis -script: - - tox -e pep8,py3 diff --git a/.zuul.yaml b/.zuul.yaml new file mode 100644 index 0000000..4434ea0 --- /dev/null +++ b/.zuul.yaml @@ -0,0 +1,4 @@ +- project: + templates: + - python36-charm-jobs + - openstack-cover-jobs diff --git a/src/tests/tests.yaml b/src/tests/tests.yaml index f7dd08d..8929cbc 100644 --- a/src/tests/tests.yaml +++ b/src/tests/tests.yaml @@ -4,8 +4,11 @@ smoke_bundles: gate_bundles: - bionic-rocky - bionic-stein -- disco +comment: | + Deployment on Disco and onwards will not work until we resolve + https://bugs.launchpad.net/bugs/1824112 dev_bundles: +- disco - eoan target_deploy_status: glance-simplestreams-sync: diff --git a/tox.ini b/tox.ini index d1f567a..d26ef9b 100644 --- a/tox.ini +++ b/tox.ini @@ -23,6 +23,11 @@ basepython = python3 commands = charm-build --log-level DEBUG -o {toxinidir}/build src {posargs} +[testenv:py35] +basepython = python3.5 +deps = -r{toxinidir}/test-requirements.txt +commands = stestr run {posargs} + [testenv:py36] basepython = python3.6 deps = -r{toxinidir}/test-requirements.txt