-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
61 lines (45 loc) · 3.02 KB
/
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
init:
brew bundle
rbenv install --skip-existing
rbenv exec gem update bundler
rbenv exec bundle update
rbenv exec bundle exec pod repo add tworingsoft https://github.com/TwoRingSoft/podspecs.git ||:
.PHONY: xcode
xcode:
pushd Examples/Pippin; rbenv exec bundle exec pod update; xed Examples/Pippin/Pippin.xcworkspace; popd
build: build-phone build-mac
build-phone:
xcodebuild -workspace Pippin.xcworkspace -scheme PippinTestHarness -sdk iphoneos -quiet
build-mac:
xcodebuild -workspace Pippin.xcworkspace -scheme PippinTestHarness-macOS -sdk macosx -quiet
bump:
rbenv exec bundle exec bumpr $(COMPONENT) $(NAME).podspec --no-commit
rbenv exec bundle exec migrate-changelog Sources/$(NAME)/CHANGELOG.md `vrsn --read --file $(NAME).podspec` --no-commit
git commit --all --message "chore: update version and changelog to `vrsn --read --file $(NAME).podspec`"
prerelease-adapters:
rbenv exec bundle exec prerelease-podspec PippinAdapters.podspec --podspec-name-in-tag --allow-warnings
ADAPTERS_VERSION=$(shell vrsn --read --file PippinAdapters.podspec)
release-adapters:
rbenv exec bundle exec release-podspec PippinAdapters.podspec --skip-tests --podspec-name-in-tag --allow-warnings --changelog-path Sources/PippinAdapters/CHANGELOG.md --changelog-entry $(ADAPTERS_VERSION) --repo tworingsoft --also-push-to-trunk
prerelease-core:
rbenv exec bundle exec prerelease-podspec PippinCore.podspec --podspec-name-in-tag
CORE_VERSION=$(shell vrsn --read --file PippinCore.podspec)
release-core:
rbenv exec bundle exec release-podspec PippinCore.podspec --podspec-name-in-tag --changelog-path Sources/PippinCore/CHANGELOG.md --changelog-entry $(CORE_VERSION) --repo tworingsoft --also-push-to-trunk
prerelease-library:
rbenv exec bundle exec prerelease-podspec PippinLibrary.podspec --podspec-name-in-tag --skip-tests
LIBRARY_VERSION=$(shell vrsn --read --file PippinLibrary.podspec)
release-library:
rbenv exec bundle exec release-podspec PippinLibrary.podspec --skip-tests --podspec-name-in-tag --changelog-path Sources/PippinLibrary/CHANGELOG.md --changelog-entry $(LIBRARY_VERSION) --repo tworingsoft --also-push-to-trunk
prerelease-debugging:
rbenv exec bundle exec prerelease-podspec PippinDebugging.podspec --podspec-name-in-tag
DEBUGGING_VERSION=$(shell vrsn --read --file PippinDebugging.podspec)
release-debugging:
rbenv exec bundle exec release-podspec PippinDebugging.podspec --podspec-name-in-tag --changelog-path Sources/PippinDebugging/CHANGELOG.md --changelog-entry $(DEBUGGING_VERSION) --repo tworingsoft --also-push-to-trunk
prerelease-testing:
rbenv exec bundle exec prerelease-podspec PippinTesting.podspec --podspec-name-in-tag
TESTING_VERSION=$(shell vrsn --read --file PippinTesting.podspec)
release-testing:
rbenv exec bundle exec release-podspec PippinTesting.podspec --podspec-name-in-tag --changelog-path Sources/PippinTesting/CHANGELOG.md --changelog-entry $(TESTING_VERSION) --repo tworingsoft --also-push-to-trunk
clean-rc-tags:
git tag --list | grep "\-RC\d*" | xargs -tI @ bash -c "git tag --delete @ &&git push --delete origin @"