File: Makefile

package info (click to toggle)
asciinema 2.0.2-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 392 kB
  • sloc: python: 1,304; sh: 53; makefile: 35
file content (29 lines) | stat: -rw-r--r-- 598 bytes parent folder | download | duplicates (2)
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
NAME=asciinema
VERSION=`python3 -c "import asciinema; print(asciinema.__version__)"`

test: test-unit test-integration

test-unit:
	nosetests3

test-integration:
	tests/integration.sh

release: test tag push

release-test: test push-test

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:
	python3 setup.py sdist upload -r pypi

push-test:
	python3 setup.py sdist upload -r pypitest

release: test tag push

.PHONY: test test-unit test-integration release release-test tag push push-test