mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
[ci] split unit and selenium tasks into separate jenkins scripts
This commit is contained in:
parent
995c408410
commit
7df6040536
3 changed files with 26 additions and 8 deletions
|
@ -2,7 +2,7 @@ import { compact } from 'lodash';
|
|||
import { delimiter } from 'path';
|
||||
|
||||
module.exports = function (grunt) {
|
||||
grunt.registerTask('jenkins', 'Jenkins build script', function () {
|
||||
grunt.registerTask('jeknins:env', () => {
|
||||
// make sure JAVA_HOME points to JDK8
|
||||
const HOME = '/usr/lib/jvm/jdk8';
|
||||
process.env.JAVA_HOME = HOME;
|
||||
|
@ -11,12 +11,23 @@ module.exports = function (grunt) {
|
|||
const path = process.env.PATH.split(delimiter);
|
||||
path.unshift(`${HOME}/bin`);
|
||||
process.env.PATH = path.join(delimiter);
|
||||
|
||||
grunt.task.run(compact([
|
||||
'rejectRejFiles',
|
||||
'test',
|
||||
process.env.JOB_NAME === 'kibana_core' ? 'build' : null
|
||||
]));
|
||||
});
|
||||
|
||||
grunt.registerTask('jenkins:unit', [
|
||||
'jenkins:env',
|
||||
'rejectRejFiles',
|
||||
|
||||
'lint:source',
|
||||
'test:server',
|
||||
'test:browser',
|
||||
'test:api',
|
||||
]);
|
||||
|
||||
grunt.registerTask('jenkins:selenium', [
|
||||
'jenkins:env',
|
||||
'rejectRejFiles',
|
||||
|
||||
'test:ui'
|
||||
]);
|
||||
|
||||
};
|
||||
|
|
7
test/scripts/jenkins_selenium.sh
Normal file
7
test/scripts/jenkins_selenium.sh
Normal file
|
@ -0,0 +1,7 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
set -e
|
||||
|
||||
"$(dirname $0)/jenkins_setup.sh"
|
||||
|
||||
"$(npm bin)/grunt" jenkins:selenium;
|
|
@ -4,4 +4,4 @@ set -e
|
|||
|
||||
"$(dirname $0)/jenkins_setup.sh"
|
||||
|
||||
"$(npm bin)/grunt" jenkins;
|
||||
"$(npm bin)/grunt" jenkins:unit;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue