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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
Ubuntu Push Notifications
-------------------------
Protocol, client, and development code for Ubuntu Push Notifications.
The code expects to be checked out as launchpad.net/ubuntu-push in a Go
workspace, see "go help gopath".
You need a somewhat long list of dependencies, as well as a working Go
development environment. THe Ubuntu packagenames for these are listed
in the file PACKAGE_DEPS.
On Ubuntu, if you have sudo, you can have all those installed for you
by do doing
make fetchdeps
Once you have the packaged dependencies you can get the Go
dependencies via
make bootstrap
and then you're set. Good luck!
To run the tests:
make check
To produce coverage reports you need Go 1.2 (default on Trusty) and
the cover tool (in the golang-go.tools package),
then run:
make coverage-summary
for a summary report, or:
for per-package HTML with annotated code in coverhtml/<package-name>.html
make coverage-html
(it makes also textual coverhtml/<package-name>.txt reports).
To run the acceptance tests, change to the acceptance subdir and run:
make acceptance
There are build targets to build the client:
make build-client
building ubuntu-push-client, and to run the development server:
make run-server-dev
|