forked from cloud-custodian/cloud-custodian
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
46 lines (37 loc) · 1.33 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
install:
python -m virtualenv --python python2.7 .
source bin/activate && pip install -r requirements.txt
source bin/activate && python setup.py develop
develop:
python -m virtualenv --python python2.7 .
source bin/activate && pip install -r requirements-dev.txt
source bin/activate && python setup.py develop
coverage:
rm -Rf .coverage
AWS_DEFAULT_REGION=us-east-1 AWS_ACCESS_KEY_ID=foo AWS_SECRET_ACCESS_KEY=bar C7N_VALIDATE=true nosetests -s -v --with-coverage --cover-html --cover-package=c7n --cover-html-dir=cover --processes=-1 --cover-inclusive tests
ttest:
AWS_DEFAULT_REGION=us-east-1 nosetests -s --with-timer tests
lint:
flake8 c7n --ignore=W293,W291,W503,W391,E123
test:
AWS_ACCESS_KEY_ID=foo AWS_SECRET_ACCESS_KEY=bar AWS_DEFAULT_REGION=us-east-1 nosetests --processes=-1 tests
depcache:
mkdir -p deps
python -m virtualenv --python python2.7 dep-download
dep-download/bin/pip install -d deps -r requirements.txt
tar cvf custodian-deps.tgz deps
rm -Rf dep-download
rm -Rf deps
sphinx:
make -f docs/Makefile.sphinx clean && \
make -f docs/Makefile.sphinx html
ghpages:
-git checkout gh-pages && \
mv docs/build/html new-docs && \
rm -rf docs && \
mv new-docs docs && \
git add -u && \
git add -A && \
git commit -m "Updated generated Sphinx documentation"
clean:
rm -rf .Python bin include lib pip-selfcheck.json