~stephanpampel/landscape-client-charm/landscape-client-charm

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Simon Poirier
  • Date: 2021-03-17 21:08:22 UTC
  • mfrom: (71.1.2 show-charm-source-version)
  • Revision ID: simon.poirier@canonical.com-20210317210822-catzulnroq4kztt2
Add showing charm source version/commit in juju status output

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
PYTHON := /usr/bin/env python
3
3
SYNC_SCRIPT := bin/charm_helpers_sync.py
4
4
CONFIG := charm-helpers-sync.yaml
 
5
SERIES=$(shell lsb_release -cs)
 
6
ifeq ($(SERIES), trusty)
 
7
TRIAL := trial
 
8
else ifeq ($(SERIES), xenial)
 
9
TRIAL := trial
 
10
else
 
11
TRIAL := trial3
 
12
endif
5
13
 
6
14
test:
7
 
        cd hooks && trial test_hooks.py
 
15
        cd hooks && $(TRIAL) ./test_hooks.py
8
16
 
9
17
ci-test:
10
18
        ./dev/ubuntu-deps
18
26
 
19
27
$(SYNC_SCRIPT):
20
28
        @mkdir -p bin
21
 
        @bzr cat lp:charm-helpers/tools/charm_helpers_sync/charm_helpers_sync.py \
22
 
        > $(SYNC_SCRIPT)
 
29
        @curl https://git.launchpad.net/charm-helpers/plain/tools/charm_helpers_sync/charm_helpers_sync.py > $(SYNC_SCRIPT)
23
30
 
24
31
# Note: The target name is unfortunate, but that's what other charms use.
25
32
sync: $(SYNC_SCRIPT)