-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MOBSDK-310, MOBSDK-467 & MOBSDK-468: Bamboo should use committed scri…
…pts to build and should produce JUnit test results so that Bamboo can properly report test results.
- Loading branch information
Gavin Cornwell
committed
Mar 14, 2013
1 parent
14076fb
commit e922fb7
Showing
5 changed files
with
32 additions
and
10 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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
xcuserdata | ||
AlfrescoSDK/build | ||
AlfrescoSDK/AlfrescoSDK/help | ||
AlfrescoSDK/AlfrescoSDKHelp | ||
AlfrescoSDK/test-reports | ||
|
||
|
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
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,9 @@ | ||
rm -rf AlfrescoSDKHelp | ||
mkdir AlfrescoSDKHelp | ||
|
||
# Build documentation if appledoc is installed | ||
if type -p appledoc &>/dev/null; then | ||
appledoc --project-name AlfrescoSDK --project-company "Alfresco" --company-id com.alfresco.alfrescosdk --output AlfrescoSDKHelp --keep-intermediate-files --exit-threshold 2 --ignore .m --ignore AlfrescoSDKTests . --ignore CMIS . | ||
else | ||
echo "appledoc executable can not be found, you can find installation instuctions at https://github.com/tomaz/appledoc" | ||
fi |
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 |
---|---|---|
@@ -1,8 +1,3 @@ | ||
BUILD_UNIVERSAL_LIB='TRUE' | ||
export BUILD_UNIVERSAL_LIB | ||
xcodebuild -project AlfrescoSDK.xcodeproj -target AlfrescoSDK -configuration Debug clean build | ||
|
||
# Build documentation if appledoc is installed | ||
if type -p appledoc &>/dev/null; then | ||
appledoc --project-name AlfrescoSDK --project-company "Alfresco" --company-id com.alfresco.alfrescosdk --output ./AlfrescoSDK/help --keep-intermediate-files --exit-threshold 2 --ignore .m --ignore AlfrescoSDKTests . --ignore CMIS . | ||
fi |
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 |
---|---|---|
@@ -1 +1,20 @@ | ||
xcodebuild -sdk iphonesimulator -project AlfrescoSDK.xcodeproj -target AlfrescoSDKTests -configuration Debug build | ||
#!/bin/bash | ||
|
||
# remove previous test reports | ||
if [ -d test-reports ] | ||
then | ||
echo "Removing previous test-reports folder..." | ||
rm -R test-reports | ||
fi | ||
|
||
# define the main command | ||
# TODO: Find a way to override the project TEST_AFTER_BUILD setting and set to YES | ||
BUILD_CMD="xcodebuild -sdk iphonesimulator -project AlfrescoSDK.xcodeproj -target AlfrescoSDKTests -configuration Debug build" | ||
|
||
# determine whether to pipe the unit tests results or not | ||
if [[ "$1" == "-output-junit-results" ]] ; then | ||
echo "Tests are running, output is being piped to ocunit2junit, results will appear soon..." | ||
$BUILD_CMD | ocunit2junit | ||
else | ||
$BUILD_CMD | ||
fi |