Add .gitreview and .zuul.yaml
This also includes a workaround to a bug in charmcraft which excludes many of the charm files from the build charm. Until that is resolved include ./add-to-archive.py to put add additional files to build charm. Change-Id: Ia4d794167485caf1f6c277e0a56c81149b65d70a
This commit is contained in:
parent
26eba74d30
commit
1c95624727
1
.build.manifest
Normal file
1
.build.manifest
Normal file
@ -0,0 +1 @@
|
||||
See venv directory
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -6,4 +6,3 @@ lib/*
|
||||
!lib/README.txt
|
||||
build
|
||||
ceph-iscsi.charm
|
||||
|
||||
|
4
.gitreview
Normal file
4
.gitreview
Normal file
@ -0,0 +1,4 @@
|
||||
[gerrit]
|
||||
host=review.opendev.org
|
||||
port=29418
|
||||
project=openstack/charm-ceph-iscsi
|
8
.jujuignore
Normal file
8
.jujuignore
Normal file
@ -0,0 +1,8 @@
|
||||
.stestr.conf
|
||||
.gitmodules
|
||||
.gitreview
|
||||
.gitignore
|
||||
ceph-iscsi.charm
|
||||
.zuul.yaml
|
||||
.stestr
|
||||
unit_tests
|
4
.zuul.yaml
Normal file
4
.zuul.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
- project:
|
||||
templates:
|
||||
- openstack-python3-charm-jobs
|
||||
- openstack-cover-jobs
|
@ -1 +1 @@
|
||||
charmcraft==0.3.0
|
||||
git+https://github.com/canonical/charmcraft.git#egg=charmcraft
|
||||
|
16
copyright
Normal file
16
copyright
Normal file
@ -0,0 +1,16 @@
|
||||
Format: http://dep.debian.net/deps/dep5/
|
||||
|
||||
Files: *
|
||||
Copyright: Copyright 2015-2020, Canonical Ltd., All Rights Reserved.
|
||||
License: Apache License 2.0
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
.
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
.
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
@ -1,6 +1,6 @@
|
||||
# requirements
|
||||
git+https://github.com/juju/charm-helpers.git@87fc7ee5#egg=charmhelpers
|
||||
git+https://github.com/canonical/operator.git@169794cdd#egg=ops
|
||||
git+https://github.com/openstack-charmers/ops-interface-ceph-client@cc10f29d4#egg=interface_ceph_client
|
||||
git+https://github.com/openstack-charmers/ops-openstack@ea51b43e#egg=ops_openstack
|
||||
git+https://github.com/openstack-charmers/ops-interface-tls-certificates@2ec41b60#egg=ca_client
|
||||
git+https://github.com/canonical/operator.git@0.8.0#egg=ops
|
||||
git+https://opendev.org/openstack/charm-ops-interface-ceph-client@cc10f29d4#egg=interface_ceph_client
|
||||
git+https://opendev.org/openstack/charm-ops-openstack@ea51b43e#egg=ops_openstack
|
||||
git+https://opendev.org/openstack/charm-ops-interface-tls-certificates@2ec41b60#egg=ca_client
|
||||
|
@ -7,6 +7,8 @@ mock>=1.2
|
||||
flake8>=2.2.4,<=2.4.1
|
||||
stestr>=2.2.0
|
||||
requests>=2.18.4
|
||||
# oslo.i18n dropped py35 support
|
||||
oslo.i18n<4.0.0
|
||||
git+https://github.com/openstack-charmers/zaza.git#egg=zaza
|
||||
git+https://github.com/openstack-charmers/zaza-openstack-tests.git#egg=zaza.openstack
|
||||
pytz # workaround for 14.04 pip/tox
|
||||
|
18
tox.ini
18
tox.ini
@ -17,8 +17,8 @@ install_command =
|
||||
commands = stestr run --slowest {posargs}
|
||||
whitelist_externals =
|
||||
git
|
||||
ln
|
||||
charm-init.sh
|
||||
add-to-archive.py
|
||||
bash
|
||||
passenv = HOME TERM CS_* OS_* TEST_*
|
||||
deps = -r{toxinidir}/test-requirements.txt
|
||||
|
||||
@ -37,6 +37,11 @@ basepython = python3.7
|
||||
deps = -r{toxinidir}/requirements.txt
|
||||
-r{toxinidir}/test-requirements.txt
|
||||
|
||||
[testenv:py38]
|
||||
basepython = python3.8
|
||||
deps = -r{toxinidir}/requirements.txt
|
||||
-r{toxinidir}/test-requirements.txt
|
||||
|
||||
[testenv:py3]
|
||||
basepython = python3
|
||||
deps = -r{toxinidir}/requirements.txt
|
||||
@ -86,12 +91,6 @@ deps = -r{toxinidir}/build-requirements.txt
|
||||
commands =
|
||||
charmcraft build
|
||||
|
||||
[testenv:update-deps]
|
||||
basepython = python3
|
||||
deps =
|
||||
commands =
|
||||
./charm-init.sh -u
|
||||
|
||||
[testenv:func-noop]
|
||||
basepython = python3
|
||||
commands =
|
||||
@ -118,4 +117,5 @@ commands =
|
||||
functest-run-suite --keep-model --bundle {posargs}
|
||||
|
||||
[flake8]
|
||||
ignore = E402,E226
|
||||
# Ignore E902 because the unit_tests directory is missing in the built charm.
|
||||
ignore = E402,E226,E902
|
||||
|
@ -0,0 +1,19 @@
|
||||
# Copyright 2020 Canonical Ltd
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
import sys
|
||||
import mock
|
||||
|
||||
# Mock out secrets to make py35 happy.
|
||||
sys.modules['secrets'] = mock.MagicMock()
|
Loading…
Reference in New Issue
Block a user