1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
CHARM_STORE_USER ?= "landscape"
.PHONY: diff-charm-store
diff-charm-store: render
./charm-store diff ${CHARM_STORE_USER} ${CHANNEL}
.PHONY: upload
upload: render
./charm-store push ${CHARM_STORE_USER} ${CHANNEL}
.PHONY: release-latest
release-latest:
./charm-store publish-latest ${CHARM_STORE_USER} ${CHANNEL}
.PHONY: render
render: clean
@./render-bundles
.PHONY: update-charm-revisions
update-charm-revisions:
@./update-charm-revisions \
$(EXTRA_UPDATE_ARGUMENTS) \
postgresql haproxy rabbitmq-server
.PHONY: deps
deps:
sudo snap install --classic charm
sudo apt-get install -y python3-jinja2 python3-yaml jq
.PHONY: check
proof: render
for i in build/*; do (echo $$i; cd $$i; charm proof) || exit 1; done
.PHONY: ci-test
ci-test: deps render proof
.PHONY: clean
clean:
@rm -rf build
|