Merge ~alfonsosanchezbeato/snappy-hwe-snaps/+git/upower:run-unit-tests into ~snappy-hwe-team/snappy-hwe-snaps/+git/upower:master

Proposed by Alfonso Sanchez-Beato
Status: Merged
Approved by: Simon Fels
Approved revision: 955537be7fb4b96d27ace8d4e9191a841dc4e8de
Merged at revision: 54c2706517947d4e6e9a7107b4c4fe365a777245
Proposed branch: ~alfonsosanchezbeato/snappy-hwe-snaps/+git/upower:run-unit-tests
Merge into: ~snappy-hwe-team/snappy-hwe-snaps/+git/upower:master
Diff against target: 30 lines (+9/-0)
2 files modified
.gitignore (+4/-0)
snapcraft.yaml (+5/-0)
Reviewer Review Type Date Requested Status
Simon Fels Approve
System Enablement Bot continuous-integration Approve
Review via email: mp+318899@code.launchpad.net

Commit message

Run parts unit tests on build

Description of the change

Run parts unit tests on build

To post a comment you must log in.
Revision history for this message
System Enablement Bot (system-enablement-ci-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Simon Fels (morphis) wrote :

LGTM

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/.gitignore b/.gitignore
2new file mode 100644
3index 0000000..b0b81a0
4--- /dev/null
5+++ b/.gitignore
6@@ -0,0 +1,4 @@
7+parts/
8+prime/
9+stage/
10+upower_*.snap
11diff --git a/snapcraft.yaml b/snapcraft.yaml
12index e6ce1a6..546ecb4 100644
13--- a/snapcraft.yaml
14+++ b/snapcraft.yaml
15@@ -52,6 +52,7 @@ parts:
16 - --prefix=/usr
17 - --sysconfdir=/etc
18 - --with-historydir=/var/snap/upower/common/history
19+ - --enable-tests
20
21 build-packages:
22 - build-essential
23@@ -82,3 +83,7 @@ parts:
24
25 snap:
26 - $unwanted
27+
28+ install: |
29+ # Run all tests shipped by default
30+ make check

Subscribers

People subscribed via source and target branches