79cd9bf182
Change-Id: Ic27cb7683f344ef8c24763bacee44b1ed5ad0136
94 lines
2.1 KiB
YAML
94 lines
2.1 KiB
YAML
type: charm
|
|
|
|
parts:
|
|
charm:
|
|
build-packages:
|
|
- git
|
|
- python3-dev
|
|
- python3-pip
|
|
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: $CRAFT_STAGE"
|
|
NAME=$(ls $CRAFT_PART_BUILD/build/builds)
|
|
cp -r $CRAFT_PART_BUILD/build/builds/$NAME/* $CRAFT_STAGE/
|
|
override-prime: |
|
|
# For some reason, the normal priming chokes on the fact that there's a
|
|
# hooks directory.
|
|
cp -r $CRAFT_STAGE/* .
|
|
# Charmcraft looks for this specific entry point.
|
|
mkdir -p src
|
|
touch src/charm.py
|
|
chmod +x src/charm.py
|
|
|
|
bases:
|
|
- build-on:
|
|
- name: ubuntu
|
|
channel: "18.04"
|
|
architectures: [amd64]
|
|
run-on:
|
|
- name: ubuntu
|
|
channel: "18.04"
|
|
architectures: [amd64]
|
|
- build-on:
|
|
- name: ubuntu
|
|
channel: "20.04"
|
|
architectures: [amd64]
|
|
run-on:
|
|
- name: ubuntu
|
|
channel: "20.04"
|
|
architectures: [amd64]
|
|
|
|
- build-on:
|
|
- name: ubuntu
|
|
channel: "18.04"
|
|
architectures: [arm64]
|
|
run-on:
|
|
- name: ubuntu
|
|
channel: "18.04"
|
|
architectures: [arm64]
|
|
- build-on:
|
|
- name: ubuntu
|
|
channel: "20.04"
|
|
architectures: [arm64]
|
|
run-on:
|
|
- name: ubuntu
|
|
channel: "20.04"
|
|
architectures: [arm64]
|
|
|
|
- build-on:
|
|
- name: ubuntu
|
|
channel: "18.04"
|
|
architectures: [ppc64el]
|
|
run-on:
|
|
- name: ubuntu
|
|
channel: "18.04"
|
|
architectures: [ppc64el]
|
|
- build-on:
|
|
- name: ubuntu
|
|
channel: "20.04"
|
|
architectures: [ppc64el]
|
|
run-on:
|
|
- name: ubuntu
|
|
channel: "20.04"
|
|
architectures: [ppc64el]
|
|
|
|
- build-on:
|
|
- name: ubuntu
|
|
channel: "18.04"
|
|
architectures: [s390x]
|
|
run-on:
|
|
- name: ubuntu
|
|
channel: "18.04"
|
|
architectures: [s390x]
|
|
- build-on:
|
|
- name: ubuntu
|
|
channel: "20.04"
|
|
architectures: [s390x]
|
|
run-on:
|
|
- name: ubuntu
|
|
channel: "20.04"
|
|
architectures: [s390x]
|