Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b5eaa13
commit c4222a6
Showing
2 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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
21
.wyona-continuous/scripts/build-resource-and-run-junit-tests.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |