diff options
author | Thomas Müller <DeepDiver1975@users.noreply.github.com> | 2016-07-24 10:33:39 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-24 10:33:39 +0300 |
commit | d7943f75ab59d45c8ff06f76ae8da6e3ae1f593b (patch) | |
tree | afb5c1da17de23b0d9e0b698d6e42a39fa1ab6bf /Jenkinsfile | |
parent | 9d15d4e5231afe5b6cba4dadd51fde2d60957021 (diff) |
[stable9] Test jenkins pipeline (#25401) (#25502)
Diffstat (limited to 'Jenkinsfile')
-rw-r--r-- | Jenkinsfile | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 00000000000..9e6ac097a82 --- /dev/null +++ b/Jenkinsfile @@ -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']) +} + |