From 1d50c4a8cd2267179dee7b4303835136b6776495 Mon Sep 17 00:00:00 2001 From: Shivam Mathur Date: Wed, 8 Jul 2020 07:45:11 +0530 Subject: [PATCH] Set ini values after coverage setup --- __tests__/install.test.ts | 6 +++--- dist/index.js | 6 +++--- src/install.ts | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/__tests__/install.test.ts b/__tests__/install.test.ts index a537558a..8bccd293 100644 --- a/__tests__/install.test.ts +++ b/__tests__/install.test.ts @@ -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; } diff --git a/dist/index.js b/dist/index.js index bc509192..d51325bd 100644 --- a/dist/index.js +++ b/dist/index.js @@ -3263,12 +3263,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; diff --git a/src/install.ts b/src/install.ts index 1500859d..839d34c9 100644 --- a/src/install.ts +++ b/src/install.ts @@ -41,12 +41,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); }