b797fcfcbf
Due to a build problem with the reactive plugin, this change falls back on overriding the steps and doing a manual build, but it also ensures the CI system builds the charm using charmcraft. Changes: - add a build-requirements.txt - modify charmcraft.yaml - modify osci.yaml -> indicate build with charmcraft - modify tox.ini -> tox -e build does charmcraft build/rename -> tox -e build-reactive does the reactive build - modify bundles to use the <charm>.charm artifact in tests. and fix deprecation warning re: prefix - tox inception to enable tox -e func-test in the CI Change-Id: Icb73919f247c60a9e18cc2e563f0fda9c620cb14 Co-authored-by: Aurelien Lourot <aurelien.lourot@canonical.com>
28 lines
705 B
YAML
28 lines
705 B
YAML
type: charm
|
|
|
|
parts:
|
|
charm:
|
|
build-packages:
|
|
- tox
|
|
- git
|
|
- python3-dev
|
|
- libffi-dev
|
|
- libpq-dev # for the `pg_config` executable
|
|
override-build: |
|
|
apt-get install ca-certificates -y
|
|
tox -e build-reactive
|
|
override-stage: |
|
|
echo "Copying charm to staging area: $CHARMCRAFT_STAGE"
|
|
NAME=$(ls $CHARMCRAFT_PART_BUILD/build/builds)
|
|
cp -r $CHARMCRAFT_PART_BUILD/build/builds/$NAME/* $CHARMCRAFT_STAGE/
|
|
override-prime: |
|
|
# For some reason, the normal priming chokes on the fact that there's a
|
|
# hooks directory.
|
|
cp -r $CHARMCRAFT_STAGE/* .
|
|
|
|
bases:
|
|
- name: ubuntu
|
|
channel: "20.04"
|
|
architectures:
|
|
- amd64
|