Skip to content

Commit

Permalink
junit meta and test script added
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelwechner committed Feb 22, 2015
1 parent b5eaa13 commit c4222a6
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .wyona-continuous/meta/junit.xml
@@ -0,0 +1,11 @@
<?xml version="1.0"?>

<cd:cd xmlns:cd="http://www.wyona.org/continuous-deployment/1.0.0">
<cd:environment id="development">
<cd:tests>
<cd:test type="auto" language="shell-script" file="build-resource-and-run-junit-tests.sh" arguments="org.wyona.yanel.impl.resources.XMLResource">Build resource and run junit tests</cd:test>
</cd:tests>
</cd:environment>
<cd:environment id="staging"/>
<cd:environment id="production"/>
</cd:cd>
21 changes: 21 additions & 0 deletions .wyona-continuous/scripts/build-resource-and-run-junit-tests.sh
@@ -0,0 +1,21 @@
#!/bin/sh

# INFO: Also see src/build/targets/continuous-integration/reCI

CURRENT_DIR=$( cd "$( dirname "$0" )" && pwd )
echo "Current directory: $CURRENT_DIR"

PARENT_DIR="$(dirname "$CURRENT_DIR")"
echo "Parent directory: $PARENT_DIR"

YANEL_SRC="$(dirname "$PARENT_DIR")"
echo "Yanel source directory: $YANEL_SRC"

CLASS_NAME=org.wyona.yanel.impl.resources.XMLResource
#CLASS_NAME=$1

echo "Build resource and run junit tests of class $CLASS_NAME."

cd $YANEL_SRC
./build.sh -f src/resources/xml/build.xml
./build.sh -f src/test/build.xml junit -Dtest.class.name=${CLASS_NAME}Test

0 comments on commit c4222a6

Please sign in to comment.