Skip to content

Commit

Permalink
Added option to run long tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamSaleh committed Feb 14, 2018
1 parent 6b3db8d commit 1e7cc42
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,15 @@ podTemplate(label: 'mobile-cli-go', cloud: "openshift", containers: [goSlaveCont
sh "./mobile"
}

/*TestLabel*/

stage ("Integration") {
sh "oc project ${project}"
sh "go test -timeout 30m -c ./integration"
sh "./integration.test -test.short -test.v -prefix=test-${sanitizeObjectName(env.BRANCH_NAME)}-build-$BUILD_NUMBER -namespace=`oc project -q` -executable=`pwd`/mobile"
def labels = getPullRequestLabels {}
def test_short = "-test.short"
if(labels.contains("run long tests")){
test_short = ""
}
sh "./integration.test ${test_short} -test.v -prefix=test-${sanitizeObjectName(env.BRANCH_NAME)}-build-$BUILD_NUMBER -namespace=`oc project -q` -executable=`pwd`/mobile"
}

stage ("Archive") {
Expand Down

0 comments on commit 1e7cc42

Please sign in to comment.