forked from smartystreets/smartystreets-ruby-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
33 lines (23 loc) · 714 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
#!/usr/bin/make -f
VERSION := $(shell tagit -p --dry-run)
VERSION_FILE := lib/smartystreets_ruby_sdk/version.rb
clean:
rm -f *.gem
git checkout "$(VERSION_FILE)"
test:
rake test
dependencies:
gem install minitest
package: clean dependencies test
sed -i "s/0\.0\.0/$(VERSION)/g" "$(VERSION_FILE)" \
&& gem build *.gemspec \
&& git checkout "$(VERSION_FILE)"
publish: package
chmod 0600 /root/.gem/credentials
gem push *.gem
#####################################################################
workspace:
docker-compose run sdk /bin/sh
release:
docker-compose run sdk make publish && tagit -p && git push origin --tags
.PHONY: clean test dependencies package publish workspace release