-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
44 lines (33 loc) · 861 Bytes
/
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
PYTEST = py.test\
--host=api.dev.aplazame.com\
--skip-verify\
--public-token=e75b929a1e4227230fe36c2af8fde10d6b2c5972\
--private-token=2560a62b8c140f32c1b9f754ceefc888865d4f6b
export PYTEST
branch ?= dev
tests ?= tests
init.test:
@pip install -r requirements/tests.txt
init.deploy:
@pip install -r requirements/deploy.txt
init: init.test init.deploy
@pip install -r requirements/local.txt
test:
@$(PYTEST) --verbose $(tests)
coverage:
@$(PYTEST) --verbose --cov-report term --cov=aplazame_sdk $(tests)
@coveralls
ci: init
@$(PYTEST) --junitxml=junit.xml $(tests)
publish:
@python setup.py register
@python setup.py sdist upload
@python setup.py bdist_wheel upload
$(branch):
@git checkout $(branch)
@git push origin $(branch)
release:
@git checkout release
@git pull origin master
@git push origin release
@git checkout $(branch)