Skip to content

Commit

Permalink
[stable9] Test jenkins pipeline (#25401) (#25502)
Browse files Browse the repository at this point in the history
  • Loading branch information
DeepDiver1975 authored Jul 24, 2016
1 parent 9d15d4e commit d7943f7
Show file tree
Hide file tree
Showing 2 changed files with 71 additions and 1 deletion.
68 changes: 68 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
#!groovy

node('SLAVE') {
stage 'Checkout'
checkout scm
sh '''git submodule update --init'''

stage 'JavaScript Testing'
sh '''./autotest-js.sh'''
step([$class: 'JUnitResultArchiver', testResults: 'tests/autotest-results-js.xml'])

stage 'PHPUnit'
sh '''
export NOCOVERAGE=1
unset USEDOCKER
phpenv local 7.0
./autotest.sh sqlite
phpenv local 5.4
./autotest.sh mysql
phpenv local 5.6
./autotest.sh pgsql
phpenv local 5.5
./autotest.sh oci
'''
step([$class: 'JUnitResultArchiver', testResults: 'tests/autotest-results-sqlite.xml'])
step([$class: 'JUnitResultArchiver', testResults: 'tests/autotest-results-mysql.xml'])
step([$class: 'JUnitResultArchiver', testResults: 'tests/autotest-results-oci.xml'])
step([$class: 'JUnitResultArchiver', testResults: 'tests/autotest-results-pgsql.xml'])

stage 'Files External Testing'
sh '''phpenv local 7.0
export NOCOVERAGE=1
unset USEDOCKER
./autotest-external.sh sqlite webdav-ownCloud
./autotest-external.sh sqlite smb-silvershell
./autotest-external.sh sqlite swift-ceph
'''
step([$class: 'JUnitResultArchiver', testResults: 'tests/autotest-external-results-sqlite.xml'])
step([$class: 'JUnitResultArchiver', testResults: 'tests/autotest-external-results-sqlite-webdav-ownCloud.xml'])
step([$class: 'JUnitResultArchiver', testResults: 'tests/autotest-external-results-sqlite-smb-silvershell.xml'])
step([$class: 'JUnitResultArchiver', testResults: 'tests/autotest-external-results-sqlite-swift-ceph.xml'])

stage 'Primary Objectstore Test - Swift'
sh '''phpenv local 7.0
export NOCOVERAGE=1
export RUN_OBJECTSTORE_TESTS=1
export PRIMARY_STORAGE_CONFIG="swift"
unset USEDOCKER
rm tests/autotest-results-*.xml
./autotest.sh mysql
'''
step([$class: 'JUnitResultArchiver', testResults: 'tests/autotest-results-mysql.xml'])

stage 'Integration Testing'
sh '''phpenv local 7.0
rm -rf config/config.php
./occ maintenance:install --admin-pass=admin
rm -rf build/integration/output
rm -rf build/integration/vendor
rm -rf build/integration/composer.lock
cd build/integration
./run.sh
'''
step([$class: 'JUnitResultArchiver', testResults: 'build/integration/output/*.xml'])
}

4 changes: 3 additions & 1 deletion tests/karma.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,9 @@ module.exports = function(config) {
reporters: ['dots', 'junit', 'coverage'],

junitReporter: {
outputFile: 'tests/autotest-results-js.xml'
outputDir: 'tests',
outputFile: 'autotest-results-js.xml',
useBrowserName: false
},

// web server port
Expand Down

0 comments on commit d7943f7

Please sign in to comment.