bfda49dd38
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: Iafe802bd1b01c0447dd45ed697c0ea3d003218e5
26 lines
634 B
YAML
26 lines
634 B
YAML
type: charm
|
|
|
|
parts:
|
|
charm:
|
|
build-packages:
|
|
- tox
|
|
- git
|
|
- python3-dev
|
|
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
|