diff options
author | Thomas Müller <DeepDiver1975@users.noreply.github.com> | 2016-07-25 22:37:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-25 22:37:20 +0200 |
commit | e7d2bf97a58d490e3e664907deec29f626ebd76a (patch) | |
tree | a7b568b2e3cce81d060d51cdd4786cb9e8c2169c | |
parent | 4ae337f827e328fa876563f295839528189c413e (diff) | |
download | nextcloud-server-e7d2bf97a58d490e3e664907deec29f626ebd76a.tar.gz nextcloud-server-e7d2bf97a58d490e3e664907deec29f626ebd76a.zip |
[stable8.2] Test jenkins pipeline (#25401) (#25503)
* [stable8.2] Test jenkins pipeline (#25401)
* Use phantomjs-prebuilt and remove integration tests as well as primary objectstore tests
* Adding 'Integration Testing' stage to stable8.2
-rw-r--r-- | Jenkinsfile | 55 | ||||
-rw-r--r-- | build/package.json | 2 | ||||
-rw-r--r-- | tests/karma.config.js | 4 |
3 files changed, 59 insertions, 2 deletions
diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 00000000000..c1eebaad71e --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,55 @@ +#!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 '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']) +} + diff --git a/build/package.json b/build/package.json index f5a637171ed..df26ba97785 100644 --- a/build/package.json +++ b/build/package.json @@ -16,7 +16,7 @@ "karma-junit-reporter": "*", "karma-coverage": "*", "karma-phantomjs-launcher": "*", - "phantomjs": "*", + "phantomjs-prebuilt": "*", "jasmine-core": "~2.3.4" }, "engine": "node >= 0.8" diff --git a/tests/karma.config.js b/tests/karma.config.js index 64a94ef230b..c6db35afa28 100644 --- a/tests/karma.config.js +++ b/tests/karma.config.js @@ -227,7 +227,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 |