summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJames Shubin <james@shubin.ca>2014-10-10 14:49:44 -0400
committerJames Shubin <james@shubin.ca>2014-10-10 14:49:44 -0400
commitf24cca2ac8d138aae71c019a9bf6f311395f562d (patch)
tree0f4512fdba461839588626d792be0ee08bb7d06e /Makefile
parent6c962083d8b100dcaeb6f11dbe61e6071f3d13f0 (diff)
downloadpuppet-gluster-f24cca2ac8d138aae71c019a9bf6f311395f562d.tar.gz
puppet-gluster-f24cca2ac8d138aae71c019a9bf6f311395f562d.tar.xz
puppet-gluster-f24cca2ac8d138aae71c019a9bf6f311395f562d.zip
Infra update for puppet-gluster...
w00t, c-i, and automatic pushing.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 11 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index bb98acf..7c2c651 100644
--- a/Makefile
+++ b/Makefile
@@ -15,11 +15,11 @@
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-.PHONY: all docs rpm srpm spec tar upload upload-sources upload-srpms upload-rpms
+.PHONY: all push docs test rpm srpm spec tar upload upload-sources upload-srpms upload-rpms
.SILENT:
# version of the program
-VERSION := $(shell cat VERSION)
+VERSION := $(shell gjs -c "print(`cat metadata.json`['version'])")
RELEASE = 1
SPEC = rpmbuild/SPECS/puppet-gluster.spec
SOURCE = rpmbuild/SOURCES/puppet-gluster-$(VERSION).tar.bz2
@@ -30,11 +30,20 @@ REMOTE_PATH = 'purpleidea/puppet-gluster'
all: docs rpm
+push:
+ # use blacksmith to push module to forge
+ git checkout master && rake module:push
+
docs: puppet-gluster-documentation.pdf
puppet-gluster-documentation.pdf: DOCUMENTATION.md
pandoc DOCUMENTATION.md -o 'puppet-gluster-documentation.pdf'
+test:
+ # TODO: avoid exiting with non-zero when there are only warnings?
+ #rake syntax
+ rake test
+
#
# aliases
#