moto/Makefile

56 lines
1.2 KiB
Makefile
Raw Normal View History

2013-02-18 16:09:40 -05:00
SHELL := /bin/bash
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 16:09:40 -05:00
init:
@python setup.py develop
2019-07-08 20:42:24 -05:00
@pip install -r requirements-dev.txt
2013-02-18 16:09:40 -05:00
2017-03-12 20:18:49 -04:00
lint:
flake8 moto
black --check moto/ tests/
2017-03-12 20:18:49 -04:00
test-only:
rm -f .coverage
rm -rf cover
@nosetests -sv --with-coverage --cover-html ./tests/ $(TEST_EXCLUDE)
test: lint test-only
test_server:
@TEST_SERVER_MODE=true nosetests -sv --with-coverage --cover-html ./tests/
aws_managed_policies:
scripts/update_managed_policies.py
2017-09-22 10:12:45 -07:00
upload_pypi_artifact:
2019-11-14 15:10:54 -06:00
python setup.py sdist bdist_wheel
twine upload dist/*
2017-09-22 10:12:45 -07:00
2017-09-27 12:40:08 -07:00
push_dockerhub_image:
2017-09-22 10:12:45 -07:00
docker build -t motoserver/moto .
2017-09-27 12:40:08 -07:00
docker push motoserver/moto
2017-09-22 10:12:45 -07:00
tag_github_release:
2017-09-07 12:07:08 -07:00
git tag `python setup.py --version`
git push origin `python setup.py --version`
2018-01-20 19:35:02 -08:00
publish: upload_pypi_artifact \
tag_github_release \
push_dockerhub_image
implementation_coverage:
./scripts/implementation_coverage.py
git commit IMPLEMENTATION_COVERAGE.md -m "Updating implementation coverage" || true
scaffold:
@pip install -r requirements-dev.txt > /dev/null
2017-09-25 14:11:11 -07:00
exec python scripts/scaffold.py