Unverified Commit 602af462 authored by Thomas Müller's avatar Thomas Müller
Browse files

Run integration tests only on release branches

parent e23278ed
......@@ -64,7 +64,7 @@ timestampedNode('SLAVE') {
'''
}
stage 'Files External Testing: webdav'
stage 'Files External: webdav'
executeAndReport('tests/autotest-external-results-sqlite-webdav-ownCloud.xml') {
sh '''phpenv local 7.0
export NOCOVERAGE=1
......@@ -73,7 +73,7 @@ timestampedNode('SLAVE') {
'''
}
stage 'Files External Testing: SMB/SAMBA'
stage 'Files External: SMB/SAMBA'
executeAndReport('tests/autotest-external-results-sqlite-smb-silvershell.xml') {
sh '''phpenv local 7.0
export NOCOVERAGE=1
......@@ -82,7 +82,7 @@ timestampedNode('SLAVE') {
'''
}
stage 'Files External Testing: swift/ceph'
stage 'Files External: swift/ceph'
executeAndReport('tests/autotest-external-results-sqlite-swift-ceph.xml') {
sh '''phpenv local 7.0
export NOCOVERAGE=1
......@@ -91,7 +91,7 @@ timestampedNode('SLAVE') {
'''
}
stage 'Files External Testing: SMB/WINDOWS'
stage 'Files External: SMB/WINDOWS'
executeAndReport('tests/autotest-external-results-sqlite-smb-windows.xml') {
sh '''phpenv local 7.0
export NOCOVERAGE=1
......@@ -102,7 +102,7 @@ timestampedNode('SLAVE') {
step([$class: 'JUnitResultArchiver', testResults: 'tests/autotest-external-results-sqlite.xml'])
stage 'Primary Objectstore Test: swift'
stage 'Primary Objectstore: swift'
executeAndReport('tests/autotest-results-mysql.xml') {
sh '''phpenv local 7.0
......@@ -116,15 +116,24 @@ timestampedNode('SLAVE') {
'''
}
stage 'Integration Testing'
executeAndReport('build/integration/output/*.xml') {
sh '''phpenv local 7.0
rm -rf config/config.php
./occ maintenance:install --admin-pass=admin
make clean-test-integration
make test-integration
'''
}
if (isOnReleaseBranch()) {
stage 'Integration Testing'
executeAndReport('build/integration/output/*.xml') {
sh '''phpenv local 7.0
rm -rf config/config.php
./occ maintenance:install --admin-pass=admin
make clean-test-integration
make test-integration
'''
}
}
}
def isOnReleaseBranch () {
if (env.BRANCH_NAME == 'master' || env.BRANCH_NAME == 'stable9.1' || env.BRANCH_NAME == 'stable9' || env.BRANCH_NAME == 'stable8.2') {
return true;
}
return false
}
void executeAndReport(String testResultLocation, def body) {
......@@ -143,7 +152,7 @@ void executeAndReport(String testResultLocation, def body) {
if (failed) {
if (env.BRANCH_NAME == 'master' || env.BRANCH_NAME == 'stable9.1' || env.BRANCH_NAME == 'stable9' || env.BRANCH_NAME == 'stable8.2') {
if (isOnReleaseBranch()) {
mail body: "project build error is here: ${env.BUILD_URL}" ,
subject: "Build on release branch failed: ${env.BRANCH_NAME}",
to: 'jenkins@owncloud.com'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment