456401e8ae
This updates the charmcraft.yaml to correctly build on bionic and also run on focal so that 1.6 can be used on bionic. Change-Id: Id826ed806d848d03d59cd32d550a5f70d0970691
37 lines
998 B
YAML
37 lines
998 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
|
|
pip3 install --user "tox==3.18"
|
|
~/.local/bin/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:
|
|
- build-on:
|
|
- name: ubuntu
|
|
channel: "18.04"
|
|
architectures:
|
|
- amd64
|
|
run-on:
|
|
- name: ubuntu
|
|
channel: "18.04"
|
|
architectures: [amd64, s390x, ppc64el, arm64]
|
|
- name: ubuntu
|
|
channel: "20.04"
|
|
architectures: [amd64, s390x, ppc64el, arm64]
|