2014-11-13 20:14:52 +01:00
|
|
|
NAME=asciinema
|
2016-07-05 17:12:15 +02:00
|
|
|
VERSION=`python3 -c "import asciinema; print(asciinema.__version__)"`
|
2014-11-13 20:14:52 +01:00
|
|
|
|
2016-07-11 20:21:10 +02:00
|
|
|
test: test-unit test-integration
|
2014-11-13 20:14:52 +01:00
|
|
|
|
2016-06-07 21:02:11 +02:00
|
|
|
test-unit:
|
|
|
|
|
nosetests
|
2014-08-03 16:22:54 +02:00
|
|
|
|
2016-06-07 21:02:11 +02:00
|
|
|
test-integration:
|
|
|
|
|
tests/integration.sh
|
2014-08-03 16:28:09 +02:00
|
|
|
|
2016-06-07 21:02:11 +02:00
|
|
|
release: test tag push
|
2014-08-09 21:51:17 +02:00
|
|
|
|
2016-06-07 21:02:11 +02:00
|
|
|
release-test: test push-test
|
2014-11-13 19:39:51 +01:00
|
|
|
|
|
|
|
|
tag:
|
|
|
|
|
git tag | grep "v$(VERSION)" && echo "Tag v$(VERSION) exists" && exit 1 || true
|
|
|
|
|
git tag -s -m "Releasing $(VERSION)" v$(VERSION)
|
|
|
|
|
git push --tags
|
|
|
|
|
|
|
|
|
|
push:
|
2016-07-05 17:12:15 +02:00
|
|
|
python3 setup.py sdist upload -r pypi
|
2014-11-13 19:39:51 +01:00
|
|
|
|
2016-06-07 21:02:11 +02:00
|
|
|
push-test:
|
2016-07-13 10:51:43 +02:00
|
|
|
python3 setup.py sdist upload -r pypitest
|
2014-12-16 12:07:45 +01:00
|
|
|
|
2016-06-07 21:02:11 +02:00
|
|
|
release: test tag push
|
2014-12-16 12:07:45 +01:00
|
|
|
|
2016-06-07 21:02:11 +02:00
|
|
|
.PHONY: test test-unit test-integration release release-test tag push push-test
|