-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (26 loc) · 796 Bytes
/
Makefile
File metadata and controls
32 lines (26 loc) · 796 Bytes
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
PODSPEC := $(PWD)/Snakepit.podspec
PART ?= patch # minor / major
SEARCH := '(\d+.){2}\d+'
# use shell to get output of egrep
CURRENT-VERSION=$(shell egrep -o -m 1 $(SEARCH) $(PODSPEC))
pod-deploy:
@echo 'Deploying to CocoaPod'
@pod lib lint $(PODSPEC)
@pod trunk push
bump:
@echo 'Bumping the fucking version'
bumpversion --current-version $(CURRENT-VERSION) $(PART) $(PODSPEC)
commit:
@git add *
@git commit -m "Version Bumped: $(CURRENT-VERSION)"
@git push origin master
@git tag $(CURRENT-VERSION)
@git push origin --tags
bootstrap:
sudo pip uninstall pip
sudo easy_install pip
sudo pip install --upgrade bumpversion
sudo brew install xctool
test:
xctool -workspace Snakepit.xcworkspace -scheme Snakepit -sdk iphonesimulator run-tests
release: bump commit pod-deploy