Author: mes
Date: 2011-09-01 12:24:00 -0700 (Thu, 01 Sep 2011)
New Revision: 26679

Added:
   core3/support/trunk/archetypes/archetype-tester.sh
Log:
added a simple script that tests whether the existing archetypes actually work

Added: core3/support/trunk/archetypes/archetype-tester.sh
===================================================================
--- core3/support/trunk/archetypes/archetype-tester.sh                          
(rev 0)
+++ core3/support/trunk/archetypes/archetype-tester.sh  2011-09-01 19:24:00 UTC 
(rev 26679)
@@ -0,0 +1,31 @@
+#!/bin/bash
+
+dirname=`date "+%Y%m%d%H%M%S"`
+
+mkdir $dirname
+cd $dirname
+
+function testArchetype {
+       mvn archetype:generate -DarchetypeCatalog=local 
-DarchetypeArtifactId=$1 -DarchetypeGroupId=org.cytoscape.archetypes 
-DgroupId=org.example -DartifactId=$1 -Dversion=1.0-SNAPSHOT 
-Dcytoscape.api.version=3.0.0-alpha1 -DinteractiveMode=false| grep "BUILD 
FAILURE" > generate.out
+       if [[ -s generate.out ]] 
+       then
+               exit "archetype generate $1 FAILED!"
+       fi
+
+
+       cd $1
+       mvn clean test | grep "BUILD FAILURE" > error.out 
+       if [[ -s error.out ]] 
+       then
+               echo "archetype build $1 FAILED!"
+               exit 1
+       fi
+       cd ..
+}
+
+testArchetype api-provider-plugin
+testArchetype task-plugin
+testArchetype cyaction-plugin
+
+cd ..
+


Property changes on: core3/support/trunk/archetypes/archetype-tester.sh
___________________________________________________________________
Added: svn:executable
   + *

-- 
You received this message because you are subscribed to the Google Groups 
"cytoscape-cvs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/cytoscape-cvs?hl=en.

Reply via email to