Permalink
Browse files

cleanup & link sources into build dir

  • Loading branch information...
1 parent 1957c82 commit 9dcb2f20cef0da55441694c78f2b75a0547f5fe9 @renggli renggli committed May 15, 2010
View
@@ -1,5 +1 @@
.AppleDouble
-
-images/*
-builds/*
-cache/*
View
13 README
@@ -15,6 +15,8 @@ You should get a directory structure with several empty directories, this readme
4. The "builds" directory is only used when the build script is called from the command-line. Normally it is and remains empty.
+5. The "sources" directory contains the .sources files that your images might need. Available sources files are linked to the build directory if present.
+
The generic build script build.sh works in the described directory structure. Preferably it is called from Hudson, but you can also call it from the command line. build.sh takes 3 kinds of arguments, an input image name, an output image name, and a series of scripts to load into that image. See the help for details.
PART B - Integrate with Hudson
@@ -49,10 +51,13 @@ Configure the new job
/var/bin/builder/build.sh -i omnibrowser -s testrunner -s omnibrowser-tests -o omnibrowser-tests
- in the "Post-build Actions" section, enable "Publish JUnit test result report"
-- enter "**/*.xml" into the text input labelled "Test report XMLs" that appears.
+- enter "**/*-Test.xml" into the text input labelled "Test report XMLs" that appears.
+
+- in the "Post-build Actions" section, enable "Report Violations" (requires the Violations plugin to be installed)
+- enter "**/*-Lint.xml" into the text input labelled "pmd XML filename pattern"
- in the "Post-build Actions" section, enable "Archive the artifacts"
-- enter the "Files to archive" as "**/*.image, **/*.changes", and the "Files to Exclude" as "**/*-tests.*"
+- enter the "Files to archive" as "**/*.image and **/*.changes"
- save the configuration changes.
@@ -74,8 +79,10 @@ DEBUGGING
HUDSON PLUGINS
==============
-- The "Build timeout" plugin is useful to automatically kill and fail builds that seem to hang.
+- The "Build timeout" plugin is useful to automatically kill and fail builds that hang.
- The "URL Change Trigger" plugin is useful to automatically trigger builds when the Monticello repository changes.
- The "Green Balls" plugin makes the Hudson GUI look slightly better.
+
+- The "Violations" plugin reports Lint errors in Hudson.
View
@@ -16,6 +16,7 @@ BUILD_PATH="${WORKSPACE:=$(readlink -f $(dirname $0))/builds}"
IMAGES_PATH="$(readlink -f $(dirname $0))/images"
SCRIPTS_PATH="$(readlink -f $(dirname $0))/scripts"
+SOURCES_PATH="$(readlink -f $(dirname $0))/sources"
BUILD_CACHE="$(readlink -f $(dirname $0))/cache"
# build configuration
@@ -96,9 +97,10 @@ mkdir -p "$OUTPUT_PATH"
mkdir -p "$BUILD_CACHE/$OUTPUT_NAME"
ln -s "$BUILD_CACHE/$OUTPUT_NAME" "$OUTPUT_CACHE"
-# prepare image file
+# prepare image file and sources
cp "$INPUT_IMAGE" "$OUTPUT_IMAGE"
cp "$INPUT_CHANGES" "$OUTPUT_CHANGES"
+find "$SOURCES_PATH" -name "*.sources" -exec ln "{}" "$OUTPUT_PATH/" \;
# prepare script file
SCRIPTS=("${SCRIPTS[@]}" "$SCRIPTS_PATH/after.st")
@@ -130,6 +132,7 @@ fi
# remove cache link
rm -f "$OUTPUT_CACHE"
+rm -f "$OUTPUT_PATH/*.sources"
# success
exit 0
View
No changes.
View
@@ -0,0 +1 @@
+*
View
@@ -0,0 +1 @@
+*
View
No changes.
View
@@ -0,0 +1 @@
+*
@@ -19,4 +19,4 @@ Gofer new
!
"Run the Refactoring and OmniBrowser Tests"
HDTestReport runPackages: #('AST-Tests-Core' 'Refactoring-Tests-Core' 'Refactoring-Tests-Spelling' 'OB-Tests-Core' 'OB-Tests-Morphic' 'OB-Tests-Standard' 'OB-Tests-Refactory' 'RoelTyper' 'ECompletion').
-HDLintReport runPackages: #('AST-Core' 'AST-Semantics' 'Refactoring-Core' 'Refactoring-Spelling' 'OmniBrowser' 'OB-Standard' 'OB-Morphic' 'OB-Shout' 'OB-Refactory' 'OB-Regex' 'OB-SUnitIntegration' 'Shout' 'RoelTyper' 'ECompletion' 'ECompletionOmniBrowser').
+"HDLintReport runPackages: #('AST-Core' 'AST-Semantics' 'Refactoring-Core' 'Refactoring-Spelling' 'OmniBrowser' 'OB-Standard' 'OB-Morphic' 'OB-Shout' 'OB-Refactory' 'OB-Regex' 'OB-SUnitIntegration' 'Shout' 'RoelTyper' 'ECompletion' 'ECompletionOmniBrowser')."
View
@@ -22,6 +22,7 @@ Gofer new
Gofer new
renggli: 'unsorted';
package: 'Shout';
+ package: 'ShoutWorkspace';
package: 'RoelTyper';
package: 'ECompletion';
package: 'ECompletionOmniBrowser';
@@ -1,3 +1,3 @@
"Run the PetitParser Tests"
HDTestReport runPackages: #('PetitParser' 'PetitAnalyzer' 'PetitBeta' 'PrettyPetit' 'PetitSmalltalk' 'PetitXml').
-
+HDLintReport runPackages: #('PetitParser' 'PetitAnalyzer' 'PetitBeta' 'PrettyPetit' 'PetitSmalltalk' 'PetitXml').
View
@@ -0,0 +1 @@
+*.sources

0 comments on commit 9dcb2f2

Please sign in to comment.