2013-02-18 21:09:40 +00:00
|
|
|
SHELL := /bin/bash
|
|
|
|
|
2017-11-10 09:44:02 +00:00
|
|
|
ifeq ($(TEST_SERVER_MODE), true)
|
|
|
|
# exclude test_iot and test_iotdata for now
|
|
|
|
# because authentication of iot is very complicated
|
|
|
|
TEST_EXCLUDE := --exclude='test_iot.*'
|
|
|
|
else
|
|
|
|
TEST_EXCLUDE :=
|
|
|
|
endif
|
|
|
|
|
2013-02-18 21:09:40 +00:00
|
|
|
init:
|
2013-05-03 23:33:13 +00:00
|
|
|
@python setup.py develop
|
|
|
|
@pip install -r requirements.txt
|
2013-02-18 21:09:40 +00:00
|
|
|
|
2017-03-13 00:18:49 +00:00
|
|
|
lint:
|
|
|
|
flake8 moto
|
|
|
|
|
2017-03-13 00:37:23 +00:00
|
|
|
test: lint
|
2013-03-15 15:21:03 +00:00
|
|
|
rm -f .coverage
|
2016-03-31 20:33:13 +00:00
|
|
|
rm -rf cover
|
2017-11-10 09:44:02 +00:00
|
|
|
@nosetests -sv --with-coverage --cover-html ./tests/ $(TEST_EXCLUDE)
|
2017-02-24 00:43:48 +00:00
|
|
|
test_server:
|
|
|
|
@TEST_SERVER_MODE=true nosetests -sv --with-coverage --cover-html ./tests/
|
|
|
|
|
2017-09-19 21:01:08 +00:00
|
|
|
aws_managed_policies:
|
|
|
|
scripts/update_managed_policies.py
|
|
|
|
|
2017-09-22 17:12:45 +00:00
|
|
|
upload_pypi_artifact:
|
2015-02-22 15:58:51 +00:00
|
|
|
python setup.py sdist bdist_wheel upload
|
2017-09-22 17:12:45 +00:00
|
|
|
|
2017-09-27 19:40:08 +00:00
|
|
|
push_dockerhub_image:
|
2017-09-22 17:12:45 +00:00
|
|
|
docker build -t motoserver/moto .
|
2017-09-27 19:40:08 +00:00
|
|
|
docker push motoserver/moto
|
2017-09-22 17:12:45 +00:00
|
|
|
|
|
|
|
tag_github_release:
|
2017-09-07 19:07:08 +00:00
|
|
|
git tag `python setup.py --version`
|
|
|
|
git push origin `python setup.py --version`
|
2017-09-22 10:23:10 +00:00
|
|
|
|
2017-11-20 21:17:24 +00:00
|
|
|
publish:
|
2017-10-27 12:15:38 +00:00
|
|
|
upload_pypi_artifact \
|
|
|
|
tag_github_release \
|
|
|
|
push_dockerhub_image
|
2017-09-23 08:29:18 +00:00
|
|
|
|
2017-10-25 10:28:18 +00:00
|
|
|
implementation_coverage:
|
|
|
|
./scripts/implementation_coverage.py > IMPLEMENTATION_COVERAGE.md
|
2017-11-20 20:13:44 +00:00
|
|
|
git commit IMPLEMENTATION_COVERAGE.md -m "Updating implementation coverage" || true
|
2017-10-25 10:28:18 +00:00
|
|
|
|
2017-09-22 10:23:10 +00:00
|
|
|
scaffold:
|
|
|
|
@pip install -r requirements-dev.txt > /dev/null
|
2017-09-25 21:11:11 +00:00
|
|
|
exec python scripts/scaffold.py
|