-
Notifications
You must be signed in to change notification settings - Fork 0
/
jenkinsScripts.txt
29 lines (24 loc) · 1.23 KB
/
jenkinsScripts.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Build the VCDParserClint project
cd /Users/Shared/Jenkins/Home/workspace/VCDFileReaderWithTestOutput/VCDParserClient
xcodebuild -project VCDParserClient.xcodeproj -alltargets -configuration Debug
# Build the VCDParserServer project
cd /Users/Shared/Jenkins/Home/workspace/VCDFileReaderWithTestOutput/VCDParser
xcodebuild -project VCDParserServer.xcodeproj -alltargets -configuration Debug
# Script will not fail due to individual command failure
set +e
set +x
echo $ "\n\n**** Running Client Unit Tests ****"
set -x
cd /Users/Karthik/Documents/parser_project/VCDParserClient/Build/Products/Debug
rm clientResults.xml
./VCDParserClientUnitTests --log_format=XML --log_sink=clientResults.xml --log_level=all --report_level=no
# Copy the result xml to Jenkins workspace for xUnit plugin access
cp clientResults.xml /Users/Shared/Jenkins/Home/workspace/VCDFileReaderWithTestOutput/.
set +x
echo $ "\n\n**** Running Server Unit Tests ****"
set -x
cd /Users/Karthik/Documents/parser_project/VCDParser/Build/Products/Debug
rm serverResults.xml
./VCDParserServerUnitTests --gtest_output=xml:serverResults.xml
# Copy the result xml to Jenkins workspace for xUnit plugin access
cp serverResults.xml /Users/Shared/Jenkins/Home/workspace/VCDFileReaderWithTestOutput/.