X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=Gruntfile.js;h=6be908e0871487dde47005eca94373b4ca86c32d;hb=c16704c33a278b729c11922916445b41ce05253b;hp=dbbfcb814eb5dda249d3d667a806a5e74611e298;hpb=6c9a2923fe1ee3a65cb027be5e781772f2b12fbd;p=lhc%2Fweb%2Fwiklou.git diff --git a/Gruntfile.js b/Gruntfile.js index dbbfcb814e..6be908e087 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -4,7 +4,6 @@ module.exports = function ( grunt ) { var wgServer = process.env.MW_SERVER, wgScriptPath = process.env.MW_SCRIPT_PATH, - WebdriverIOconfigFile, karmaProxy = {}; grunt.loadNpmTasks( 'grunt-banana-checker' ); @@ -14,19 +13,12 @@ module.exports = function ( grunt ) { grunt.loadNpmTasks( 'grunt-jsonlint' ); grunt.loadNpmTasks( 'grunt-karma' ); grunt.loadNpmTasks( 'grunt-stylelint' ); - grunt.loadNpmTasks( 'grunt-webdriver' ); karmaProxy[ wgScriptPath ] = { target: wgServer + wgScriptPath, changeOrigin: true }; - if ( process.env.JENKINS_HOME ) { - WebdriverIOconfigFile = './tests/selenium/wdio.conf.jenkins.js'; - } else { - WebdriverIOconfigFile = './tests/selenium/wdio.conf.js'; - } - grunt.initConfig( { eslint: { all: [ @@ -35,16 +27,13 @@ module.exports = function ( grunt ) { '!node_modules/**', '!resources/lib/**', '!resources/src/jquery.tipsy/**', - '!resources/src/jquery/jquery.farbtastic.js', - '!resources/src/mediawiki.libs/**', + '!resources/src/mediawiki.libs.jpegmeta/**', // Third-party code of PHPUnit coverage report '!tests/coverage/**', '!vendor/**', // Explicitly say "**/*.js" here in case of symlinks '!extensions/**/*.js', - '!skins/**/*.js', - // Skip functions aren't even parseable - '!resources/src/mediawiki.hidpi-skip.js' + '!skins/**/*.js' ] }, jsonlint: { @@ -62,9 +51,6 @@ module.exports = function ( grunt ) { installer: 'includes/installer/i18n/' }, stylelint: { - options: { - syntax: 'less' - }, src: '{resources/src,mw-config}/**/*.{css,less}' }, watch: { @@ -101,8 +87,8 @@ module.exports = function ( grunt ) { chromium: { browsers: [ 'Chromium' ] }, - more: { - browsers: [ 'Chrome', 'Firefox' ] + firefox: { + browsers: [ 'Firefox' ] } }, copy: { @@ -114,15 +100,7 @@ module.exports = function ( grunt ) { return require( 'path' ).join( dest, src.replace( 'resources/', '' ) ); } } - }, - - // Configure WebdriverIO task - webdriver: { - test: { - configFile: WebdriverIOconfigFile - } } - } ); grunt.registerTask( 'assert-mw-env', function () {