Merge ~barryprice/charm-canonical-livepatch/+git/canonical-livepatch-charm:charm-test into ~livepatch-charmers/charm-canonical-livepatch:master

Proposed by Barry Price
Status: Merged
Approved by: Tom Haddon
Approved revision: 0de9b500842cae5ea55a0ffb3fbfac8384374034
Merged at revision: 7cef6428f24a5d1a2c7c7b7098147a883b0b0bc7
Proposed branch: ~barryprice/charm-canonical-livepatch/+git/canonical-livepatch-charm:charm-test
Merge into: ~livepatch-charmers/charm-canonical-livepatch:master
Prerequisite: ~barryprice/charm-canonical-livepatch/+git/canonical-livepatch-charm:master
Diff against target: 62 lines (+38/-5)
3 files modified
Makefile (+36/-2)
dev/null (+0/-3)
tests/tests.yaml (+2/-0)
Reviewer Review Type Date Requested Status
Tom Haddon Approve
Review via email: mp+345071@code.launchpad.net

Commit message

Adding charm-test compatibility.

This relies on the acceptance of https://code.launchpad.net/~barryprice/charm-test/+git/charm-test/+merge/345063

To post a comment you must log in.
Revision history for this message
🤖 Canonical IS Merge Bot (canonical-is-mergebot) wrote :

This merge proposal is being monitored by mergebot. Change the status to Approved to merge.

Revision history for this message
🤖 Canonical IS Merge Bot (canonical-is-mergebot) wrote :

Unable to determine commit message from repository - please click "Set commit message" and enter the commit message manually.

Revision history for this message
Tom Haddon (mthaddon) wrote :

LGTM

review: Approve
Revision history for this message
🤖 Canonical IS Merge Bot (canonical-is-mergebot) wrote :

Change successfully merged at revision 7cef6428f24a5d1a2c7c7b7098147a883b0b0bc7

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
diff --git a/Makefile b/Makefile
index 07b57c9..630e665 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,38 @@
1#!/usr/bin/make1BUILDDEST:=$(if $(JUJU_REPOSITORY),$(JUJU_REPOSITORY),"../canonical-livepatch-built")
2BUILTCHARMDIR:="$(BUILDDEST)/builds/canonical-livepatch"
23
4all: test
5
6.PHONY: clean
7clean:
8 @rm -f .unit-state.db
9 @find . -name "*.pyc" -type f -exec rm -f '{}' \;
10 @find . -name "__pycache__" -type d -prune -exec rm -rf '{}' \;
11
12.PHONY: testdeps
13testdeps:
14 @sudo apt-get update
15 @sudo apt-get install -y make flake8 python3-flake8 python3-pip python-pip snapd
16 @which juju >/dev/null || (sudo snap install juju --classic)
17 @which charm >/dev/null || (sudo snap install charm)
18 @which bundletester >/dev/null || (pip2 install bundletester juju-deployer)
19 @pip3 install amulet
20
21.PHONY: lint
3lint:22lint:
4 @flake8 --max-line-length=12023 @flake8 --max-complexity=16 --max-line-length=120 && echo OK
24
25.PHONY: charmbuild
26charmbuild:
27 charm build --output-dir $(BUILDDEST) --report
28
29.PHONY: test
30test: check-jujumodel
31 @echo "Running functional tests (including lint and unit tests)..."
32 bundletester -t $(BUILTCHARMDIR) -Fvl DEBUG -e $(JUJU_MODEL)
33
34.PHONY: check-jujumodel
35check-jujumodel:
36ifndef JUJU_MODEL
37 $(error JUJU_MODEL is undefined)
38endif
diff --git a/tests/00-setup b/tests/00-setup
5deleted file mode 10075539deleted file mode 100755
index 830e9a6..0000000
--- a/tests/00-setup
+++ /dev/null
@@ -1,3 +0,0 @@
1#!/bin/bash
2
3pip3 install amulet juju-deployer
diff --git a/tests/tests.yaml b/tests/tests.yaml
4new file mode 1006440new file mode 100644
index 0000000..757bcc2
--- /dev/null
+++ b/tests/tests.yaml
@@ -0,0 +1,2 @@
1makefile:
2 - lint

Subscribers

People subscribed via source and target branches