Set ini values after coverage setup

This commit is contained in:
Shivam Mathur 2020-07-08 07:45:11 +05:30
parent a3d5500a6a
commit 3e8d887b0d
No known key found for this signature in database
GPG Key ID: 3E13E4C8591ACC2A
3 changed files with 9 additions and 9 deletions

View File

@ -26,12 +26,12 @@ jest.mock('../src/install', () => ({
if (extension_csv) {
script += 'install extensions';
}
if (ini_values_csv) {
script += 'edit php.ini';
}
if (coverage_driver) {
script += 'set coverage driver';
}
if (ini_values_csv) {
script += 'edit php.ini';
}
return script;
}

6
dist/index.js vendored
View File

@ -3214,12 +3214,12 @@ async function build(filename, version, os_version) {
if (extension_csv) {
script += await extensions.addExtension(extension_csv, version, os_version);
}
if (ini_values_csv) {
script += await config.addINIValues(ini_values_csv, os_version);
}
if (coverage_driver) {
script += await coverage.addCoverage(coverage_driver, version, os_version);
}
if (ini_values_csv) {
script += await config.addINIValues(ini_values_csv, os_version);
}
return await utils.writeScript(filename, script);
}
exports.build = build;

View File

@ -43,12 +43,12 @@ export async function build(
if (extension_csv) {
script += await extensions.addExtension(extension_csv, version, os_version);
}
if (ini_values_csv) {
script += await config.addINIValues(ini_values_csv, os_version);
}
if (coverage_driver) {
script += await coverage.addCoverage(coverage_driver, version, os_version);
}
if (ini_values_csv) {
script += await config.addINIValues(ini_values_csv, os_version);
}
return await utils.writeScript(filename, script);
}