| Server IP : 103.191.208.88 / Your IP : 216.73.216.44 Web Server : Microsoft-IIS/10.0 System : Windows NT COSMIC 10.0 build 20348 (Windows Server 2022) AMD64 User : IWPD_1831(willswel_) ( 0) PHP Version : 8.2.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : D:/Inetpub/vhosts/willswell.com/httpdocs/wp-content/plugins/WordPress-Importer-master/ |
Upload File : |
module.exports = function( grunt ) {
'use strict';
require('phplint').gruntPlugin(grunt);
grunt.initConfig( {
pkg: grunt.file.readJSON( 'package.json' ),
phpcs: {
plugin: {
src: './'
},
options: {
bin: "vendor/bin/phpcs --extensions=php --ignore=\"*/vendor/*,*/node_modules/*\"",
standard: "phpcs.ruleset.xml"
}
},
phplint: {
options: {
limit: 10,
stdout: true,
stderr: true
},
files: ['tests/*.php', '*.php']
},
phpunit: {
'default': {
cmd: 'phpunit',
args: [ '-c', 'phpunit.xml.dist' ],
}
}
} );
grunt.loadNpmTasks( 'grunt-phpcs' );
// Testing tasks.
grunt.registerMultiTask('phpunit', 'Runs PHPUnit tests, including the ajax, external-http, and multisite tests.', function() {
grunt.util.spawn({
cmd: this.data.cmd,
args: this.data.args,
opts: {stdio: 'inherit'}
}, this.async());
});
grunt.registerTask( 'test', [ 'phpcs', 'phplint', 'phpunit' ] );
grunt.util.linefeed = '\n';
// Travis CI tasks.
grunt.registerTask('travis:phpvalidate', 'Runs PHPUnit Travis CI PHP code tasks.', [
'phpcs',
'phplint'
] );
grunt.registerTask('travis:phpunit', 'Runs PHPUnit Travis CI tasks.', [
'phpunit',
] );
};