Permalink
Browse files

Merge "remove deprecated base unit test in vcap-service repo"

  • Loading branch information...
2 parents b141120 + f0c816a commit e91c3d0633427dd679bcd46338321167b4092c8d @SlimYang SlimYang committed with Gerrit Code Review Sep 11, 2012
Showing with 0 additions and 157 deletions.
  1. +0 −157 src/jenkins_jobs/SERVICES_Base_New/config.xml.erb
View
157 src/jenkins_jobs/SERVICES_Base_New/config.xml.erb
@@ -1,157 +0,0 @@
-<?xml version='1.0' encoding='UTF-8'?>
-<project>
- <actions/>
- <description></description>
- <displayName>Base Unit Test</displayName>
- <logRotator>
- <daysToKeep>30</daysToKeep>
- <numToKeep>-1</numToKeep>
- <artifactDaysToKeep>-1</artifactDaysToKeep>
- <artifactNumToKeep>-1</artifactNumToKeep>
- </logRotator>
- <keepDependencies>false</keepDependencies>
- <properties>
- <hudson.plugins.throttleconcurrents.ThrottleJobProperty>
- <maxConcurrentPerNode>0</maxConcurrentPerNode>
- <maxConcurrentTotal>0</maxConcurrentTotal>
- <throttleEnabled>false</throttleEnabled>
- <throttleOption>project</throttleOption>
- </hudson.plugins.throttleconcurrents.ThrottleJobProperty>
- </properties>
- <scm class="hudson.plugins.git.GitSCM">
- <configVersion>2</configVersion>
- <userRemoteConfigs>
- <hudson.plugins.git.UserRemoteConfig>
- <name></name>
- <refspec>$GERRIT_REFSPEC</refspec>
- <url>ssh://<%= ENV['CF_CI_USER'] %>@<%= ENV['CF_GERRIT_ADDRESS'] %>:<%= ENV['CF_GERRIT_PORT'] %>/vcap-services.git</url>
- </hudson.plugins.git.UserRemoteConfig>
- </userRemoteConfigs>
- <branches>
- <hudson.plugins.git.BranchSpec>
- <name>$GERRIT_BRANCH</name>
- </hudson.plugins.git.BranchSpec>
- </branches>
- <disableSubmodules>false</disableSubmodules>
- <recursiveSubmodules>false</recursiveSubmodules>
- <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations>
- <authorOrCommitter>false</authorOrCommitter>
- <clean>false</clean>
- <wipeOutWorkspace>false</wipeOutWorkspace>
- <pruneBranches>false</pruneBranches>
- <remotePoll>false</remotePoll>
- <buildChooser class="com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.GerritTriggerBuildChooser">
- <separator>#</separator>
- </buildChooser>
- <gitTool>Default</gitTool>
- <submoduleCfg class="list"/>
- <relativeTargetDir></relativeTargetDir>
- <reference></reference>
- <excludedRegions></excludedRegions>
- <excludedUsers></excludedUsers>
- <gitConfigName></gitConfigName>
- <gitConfigEmail></gitConfigEmail>
- <skipTag>false</skipTag>
- <includedRegions></includedRegions>
- <scmName></scmName>
- </scm>
- <canRoam>true</canRoam>
- <disabled>false</disabled>
- <blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
- <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
- <triggers class="vector"/>
- <concurrentBuild>true</concurrentBuild>
- <builders>
- <hudson.tasks.Shell>
- <command>export PATH=$VCAP_RUBY19/bin:$PATH
-
-RUBY19_REALPATH=`readlink -nf $VCAP_RUBY19`
-GIT_REALPATH=`readlink -nf $VCAP_GIT`
-SQLITE_REALPATH=`readlink -nf $VCAP_SQLITE`
-
-BASE=$PWD/base
-MYSQL_SVC=$PWD/mysql
-SVC_BROKER=$PWD/service_broker
-rm -rf $BASE/spec_reports
-
-#
-# HACK - Base expects to be able to write to /var/vcap/sys/run/LOCK
-#
-SCRATCHPAD=$BASE/xxx_scratchpad
-rm -rf $SCRATCHPAD
-mkdir $SCRATCHPAD
-
-TEST_RUNNER=`mktemp`
-cat &lt;&lt;-EOT &gt; $TEST_RUNNER
-#!/bin/bash
-set -x
-set -o errexit
-export PATH=$RUBY19_REALPATH/bin:$GIT_REALPATH/bin:$PATH
-export LIBRARY_PATH=$SQLITE_REALPATH/lib:$LIBRARY_PATH
-export C_INCLUDE_PATH=$SQLITE_REALPATH/include:$C_INCLUDE_PATH
-export CI_ENV=&apos;jenkins&apos;
-
-cd /tmp/base
-mkdir -p vendor/cache
-
-#
-# HACK - Copy missing gems
-#
-cp /tmp/mysql/vendor/cache/eventmachine-*.gem vendor/cache
-cp /tmp/mysql/vendor/cache/vcap_logging-*.gem vendor/cache
-cp /tmp/mysql/vendor/cache/vcap_services_base-*.gem vendor/cache
-cp /tmp/service_broker/vendor/cache/vcap_common-*.gem vendor/cache
-mkdir /tmp/unused
-env BUNDLE_PATH=/tmp/unused bundle package
-bundle install --path vendor/bundle
-bundle exec nats-server --daemonize --pid /tmp/nats.pid
-bundle exec rake spec:ci
-EOT
-
-HANDLE=`$WARDEN_REPL -e -c &quot;create bind_mount:$RUBY19_REALPATH,$RUBY19_REALPATH,ro bind_mount:$GIT_REALPATH,$GIT_REALPATH,ro bind_mount:$SQLITE_REALPATH,$SQLITE_REALPATH,ro bind_mount:$SCRATCHPAD,/var/vcap/sys/run,rw&quot;`
-$WARDEN_REPL -e -x -c &quot;
-copy $HANDLE in $BASE /tmp
-copy $HANDLE in $MYSQL_SVC /tmp
-copy $HANDLE in $SVC_BROKER /tmp
-copy $HANDLE in $TEST_RUNNER /tmp
-run $HANDLE chmod +x $TEST_RUNNER
-run $HANDLE $TEST_RUNNER
-copy $HANDLE out /tmp/base/spec_reports $BASE vcap:vcap
-copy $HANDLE out /tmp/base/spec_coverage $BASE vcap:vcap
-destroy $HANDLE
-&quot;
-
-rm -f $TEST_RUNNER
-</command>
- </hudson.tasks.Shell>
- </builders>
- <publishers>
- <hudson.tasks.ArtifactArchiver>
- <artifacts>base/spec_reports/**</artifacts>
- <latestOnly>false</latestOnly>
- </hudson.tasks.ArtifactArchiver>
- <hudson.tasks.junit.JUnitResultArchiver>
- <testResults>base/spec_reports/*.xml</testResults>
- <keepLongStdio>false</keepLongStdio>
- <testDataPublishers/>
- </hudson.tasks.junit.JUnitResultArchiver>
- <hudson.plugins.rubyMetrics.rcov.RcovPublisher>
- <reportDir>base/spec_coverage/rcov</reportDir>
- <targets>
- <hudson.plugins.rubyMetrics.rcov.model.MetricTarget>
- <metric>TOTAL_COVERAGE</metric>
- <healthy>80</healthy>
- <unhealthy>0</unhealthy>
- <unstable>0</unstable>
- </hudson.plugins.rubyMetrics.rcov.model.MetricTarget>
- <hudson.plugins.rubyMetrics.rcov.model.MetricTarget>
- <metric>CODE_COVERAGE</metric>
- <healthy>80</healthy>
- <unhealthy>0</unhealthy>
- <unstable>0</unstable>
- </hudson.plugins.rubyMetrics.rcov.model.MetricTarget>
- </targets>
- </hudson.plugins.rubyMetrics.rcov.RcovPublisher>
- </publishers>
- <buildWrappers/>
-</project>

0 comments on commit e91c3d0

Please sign in to comment.