-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
28 lines (20 loc) · 886 Bytes
/
Makefile
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
#!/usr/bin/make
PYTHON := /usr/bin/env python
build: sync-charm-helpers test
lint:
@flake8 --exclude hooks/charmhelpers --ignore=E125 hooks
@flake8 --exclude hooks/charmhelpers --ignore=E125 unit_tests
@charm proof
test:
@echo Starting unit tests...
@PYTHONPATH=./hooks $(PYTHON) unit_tests/test_hooks.py
deploy:
@echo Deploying local elasticsearch charm
@juju deploy --num-units=2 --repository=../.. local:trusty/elasticsearch
health:
juju ssh elasticsearch/0 "curl http://localhost:9200/_cluster/health?pretty=true"
# The following targets are used for charm maintenance only.
bin/charm_helpers_sync.py:
wget -O bin/charm_helpers_sync.py https://raw.githubusercontent.com/juju/charm-tools/master/charmtools/templates/ansible/files/scripts/charm_helpers_sync.py
sync-charm-helpers: bin/charm_helpers_sync.py
@$(PYTHON) bin/charm_helpers_sync.py -c charm-helpers.yaml