~andrewjbeach/juju-ci-tools/make-local-patcher

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Curtis Hovey
  • Date: 2014-08-01 12:44:38 UTC
  • Revision ID: curtis@canonical.com-20140801124438-l48516pldkzh7g5n
Do not show all the files in the tarball because it distracts from the test output.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
p=test*.py
2
 
test:
3
 
        TMPDIR=/tmp python -m unittest discover -vv ./tests -p "$(p)"
4
 
lint:
5
 
        flake8 $$(find -name '*.py')
6
 
cover:
7
 
        python -m coverage run --source="./" --omit "./tests/*" -m unittest discover -vv ./tests
8
 
        python -m coverage report
9
 
clean:
10
 
        find . -name '*.pyc' -delete
11
 
apt-update:
12
 
        sudo apt-get -qq update
13
 
juju-ci-tools.common_0.1.0-0_all.deb: apt-update
14
 
        sudo apt-get install -y equivs
15
 
        equivs-build juju-ci-tools-common
16
 
install-deps: juju-ci-tools.common_0.1.0-0_all.deb apt-update
17
 
        sudo dpkg -i juju-ci-tools.common_0.1.0-0_all.deb || true
18
 
        sudo apt-get install -y -f
19
 
        sudo apt-get install -y juju-local juju juju-quickstart juju-deployer
20
 
        sudo apt-get install -y python-pip
21
 
        ./pipdeps.py install
22
 
name=NAMEHERE
23
 
assess_file=assess_$(name).py
24
 
test_assess_file=tests/test_assess_$(name).py
25
 
new-assess:
26
 
        install -m 755 template_assess.py.tmpl $(assess_file)
27
 
        install -m 644 template_test.py.tmpl $(test_assess_file)
28
 
        sed -i -e "s/TEMPLATE/$(name)/g" $(assess_file) $(test_assess_file)
29
 
.PHONY: lint test cover clean new-assess apt-update install-deps