forked from cloud-custodian/cloud-custodian
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
61 lines (45 loc) · 1.81 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
install:
python3.6 -m virtualenv --python python3.6 .
. bin/activate && pip install -r requirements-dev.txt
. bin/activate && pip install -e .
. bin/activate && pip install -r tools/c7n_mailer/requirements.txt
. bin/activate && pip install -r tools/c7n_azure/requirements.txt
. bin/activate && pip install -r tools/c7n_gcp/requirements.txt
. bin/activate && pip install -r tools/c7n_kube/requirements.txt
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=coverage --processes=-1 --cover-inclusive tests --process-timeout=64
test:
./bin/tox -e py27
test3:
./bin/tox -e py36
nose-tests:
AWS_DEFAULT_REGION=us-east-1 AWS_ACCESS_KEY_ID=foo AWS_SECRET_ACCESS_KEY=bar C7N_VALIDATE=true nosetests -s -v --processes=-1 --process-timeout=300 tests
azure-tests:
C7N_VALIDATE=true AZURE_ACCESS_TOKEN=fake_token AZURE_SUBSCRIPTION_ID=ea42f556-5106-4743-99b0-c129bfa71a47 ./bin/py.test --tb=native tools/c7n_azure
ttest:
AWS_DEFAULT_REGION=us-east-1 nosetests -s --with-timer --process-timeout=300 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
ftest:
C7N_FUNCTIONAL=yes AWS_DEFAULT_REGION=us-east-2 ./bin/py.test -m functional tests
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"
lint:
flake8 c7n tools tests
clean:
rm -rf .tox .Python bin include lib pip-selfcheck.json