* [dev/notice] add scripts for generating NOTICE.txt file
* [notice] react-resize-detector@0.6.0 was removed in b445389b79
* [notice] move notice text into relevant source
* [dev/notice] Generate NOTICE.txt file
* [jenkins] verify that notice.txt is up to date in CI
* [tasks/notice] update test to use new NOTICE.txt file
* [dev/notice] update company name in NOTICE.txt
* [notice/cli] exit with 0 when --help requested
* [notice/cli] add helpful logging
* [notice/cli] use --validate flag name instead
* [notice/cli] simplify NEWLINE_RE, ignore obscure line endings
* [utils/decode_geo_hash] fixup comment
* [utils/decode_geo_hash] remove useless comment
52 lines
1.2 KiB
JavaScript
52 lines
1.2 KiB
JavaScript
import { compact } from 'lodash';
|
|
import { delimiter } from 'path';
|
|
|
|
module.exports = function (grunt) {
|
|
// TODO: remove after migration to new CI is complete
|
|
grunt.registerTask('jenkins', compact([
|
|
'jenkins:env',
|
|
'rejectRejFiles',
|
|
'test',
|
|
process.env.JOB_NAME === 'kibana_core' ? 'build' : null
|
|
]));
|
|
|
|
grunt.registerTask('jenkins:env', () => {
|
|
// make sure JAVA_HOME points to JDK8
|
|
const HOME = '/usr/lib/jvm/jdk8';
|
|
process.env.JAVA_HOME = HOME;
|
|
|
|
// extend PATH to point to JDK8
|
|
const path = process.env.PATH.split(delimiter);
|
|
path.unshift(`${HOME}/bin`);
|
|
process.env.PATH = path.join(delimiter);
|
|
});
|
|
|
|
grunt.registerTask('jenkins:docs', [
|
|
'docker:docs'
|
|
]);
|
|
|
|
grunt.registerTask('jenkins:unit', [
|
|
'jenkins:env',
|
|
'rejectRejFiles',
|
|
|
|
'run:eslint',
|
|
'licenses',
|
|
'run:verifyNotice',
|
|
'test:server',
|
|
'test:jest',
|
|
'test:jest_integration',
|
|
'test:projects',
|
|
'test:browser-ci',
|
|
'test:api',
|
|
'verifyTranslations',
|
|
]);
|
|
|
|
grunt.config.set('functional_test_runner.functional.options.configOverrides.mochaOpts.bail', true);
|
|
grunt.registerTask('jenkins:selenium', [
|
|
'jenkins:env',
|
|
'rejectRejFiles',
|
|
|
|
'test:uiRelease'
|
|
]);
|
|
|
|
};
|