/usr/lib/python2.7/dist-packages/charmtools/templates/ansible/files/Makefile is in charm-tools 2.1.2-0ubuntu4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | #!/usr/bin/make
build: virtualenv lint test
virtualenv: .venv/bin/python
.venv/bin/python:
sudo apt-get install python-virtualenv
virtualenv .venv
.venv/bin/pip install nose flake8 mock pyyaml
lint:
@.venv/bin/flake8 hooks unit_tests
@charm proof
test:
@echo Starting tests...
@CHARM_DIR=. PYTHONPATH=./hooks .venv/bin/nosetests --nologcapture unit_tests
sync-charm-helpers:
@.venv/bin/python scripts/charm_helpers_sync.py -c charm-helpers.yaml
clean:
rm -rf .venv
find -name *.pyc -delete
|