Merge branch 'winh-ee-environment-variable' into 'master'

Rename environment variable EE to IS_GITLAB_EE

Closes #60080

See merge request gitlab-org/gitlab-ce!27044
This commit is contained in:
Mike Greiling 2019-04-05 18:51:50 +00:00
commit 361c7ca697
3 changed files with 6 additions and 6 deletions

View File

@ -4,6 +4,6 @@ const path = require('path');
const ROOT_PATH = path.resolve(__dirname, '../..');
module.exports =
process.env.EE !== undefined
? JSON.parse(process.env.EE)
process.env.IS_GITLAB_EE !== undefined
? JSON.parse(process.env.IS_GITLAB_EE)
: fs.existsSync(path.join(ROOT_PATH, 'ee'));

View File

@ -322,7 +322,7 @@ module.exports = {
}),
new webpack.DefinePlugin({
'process.env.EE': JSON.stringify(IS_EE),
'process.env.IS_GITLAB_EE': JSON.stringify(IS_EE),
}),
].filter(Boolean),

View File

@ -69,7 +69,7 @@ window.gl = window.gl || {};
window.gl.TEST_HOST = TEST_HOST;
window.gon = window.gon || {};
window.gon.test_env = true;
window.gon.ee = process.env.EE;
window.gon.ee = process.env.IS_GITLAB_EE;
gon.relative_url_root = '';
let hasUnhandledPromiseRejections = false;
@ -124,7 +124,7 @@ const axiosDefaultAdapter = getDefaultAdapter();
// render all of our tests
const testContexts = [require.context('spec', true, /_spec$/)];
if (process.env.EE) {
if (process.env.IS_GITLAB_EE) {
testContexts.push(require.context('ee_spec', true, /_spec$/));
}
@ -213,7 +213,7 @@ if (process.env.BABEL_ENV === 'coverage') {
describe('Uncovered files', function() {
const sourceFilesContexts = [require.context('~', true, /\.(js|vue)$/)];
if (process.env.EE) {
if (process.env.IS_GITLAB_EE) {
sourceFilesContexts.push(require.context('ee', true, /\.(js|vue)$/));
}