Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Add a package-validate build step #143

Merged
merged 1 commit into from Apr 24, 2012
Jump to file or symbol
Failed to load files and symbols.
+6 −3
Split
View
@@ -5,16 +5,19 @@ PROVE := prove -r --exec $(PHP)
default:
-.PHONY: test install
+.PHONY: test test-verbose package-validate install uninstall
install:
pear channel-discover onlinebuddies.github.com/pear ; pear install package.xml
uninstall:
pear uninstall OnlineBuddies/Modyllic
-test:
+package-validate:
+ @pear package-validate package.xml | egrep -v 'Analyzing|Validation' > pvout ; grep ^Warning: pvout ; if grep ^Error: pvout; then rm pvout; exit 1; else rm pvout; exit 0; fi
+
+test: package-validate
$(PROVE) test
-test-verbose:
+test-verbose: package-validate
$(PROVE) -v test