forked from gabrielfalcao/lettuce
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
46 lines (35 loc) · 1.55 KB
/
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
all: check_dependencies unit functional doctest
filename=lettuce-`python -c 'import lettuce;print lettuce.version'`.tar.bz2
check_dependencies:
@echo "Checking for dependencies to run tests ..."
@python -c 'import mox' 2>/dev/null || echo 'You must install mox to run tests'
@python -c 'import mox' 2>/dev/null || exit 3
@python -c 'import sphinx' 2>/dev/null || echo 'You must install sphinx to run tests'
@python -c 'import sphinx' 2>/dev/null || exit 3
unit: clean
@echo "Running unit tests ..."
@nosetests -s --verbosity=2 --with-coverage --cover-erase --cover-inclusive tests/unit/ --cover-package=lettuce
functional: clean
@echo "Running functional tests ..."
@nosetests -s --verbosity=2 --with-coverage --cover-erase --cover-inclusive tests/functional/ --cover-package=lettuce
doctest: clean
@cd docs && make doctest
documentation:
@cd docs && make html
clean:
@printf "Cleaning up files that are already in .gitignore... "
@for pattern in `cat .gitignore`; do find . -name "$$pattern" -exec rm -rf {} \;; done
@echo "OK!"
withdraw-documentation:
@printf 'Removing current documentation ...'
@ssh [email protected] rm -rf lettuce.it/public/*
@echo "DONE!"
deploy-documentation:documentation withdraw-documentation
@printf 'Deploying documentation to http://lettuce.it ...'
@cd ./docs/_build/html && tar -zcp * | ssh [email protected] "tar zxp -C ./lettuce.it/public/"
@echo "DONE!"
deploy: deploy-documentation
release: clean
@printf "Exporting to $(filename)... "
@git archive HEAD | bzip2 > $(filename)
@echo "DONE!"