mirror of
https://github.com/shivammathur/setup-php.git
synced 2024-11-26 13:23:05 +07:00
Fix setup order
This commit is contained in:
parent
6c6203b683
commit
0ac6f76d36
@ -20,6 +20,9 @@ jest.mock('../src/install', () => ({
|
|||||||
}
|
}
|
||||||
|
|
||||||
let script = 'initial script ' + filename + version + os_version;
|
let script = 'initial script ' + filename + version + os_version;
|
||||||
|
if (tools_csv) {
|
||||||
|
script += 'add_tool';
|
||||||
|
}
|
||||||
if (extension_csv) {
|
if (extension_csv) {
|
||||||
script += 'install extensions';
|
script += 'install extensions';
|
||||||
}
|
}
|
||||||
@ -29,9 +32,6 @@ jest.mock('../src/install', () => ({
|
|||||||
if (coverage_driver) {
|
if (coverage_driver) {
|
||||||
script += 'set coverage driver';
|
script += 'set coverage driver';
|
||||||
}
|
}
|
||||||
if (tools_csv) {
|
|
||||||
script += 'add_tool';
|
|
||||||
}
|
|
||||||
|
|
||||||
return script;
|
return script;
|
||||||
}
|
}
|
||||||
|
2
dist/index.js
vendored
2
dist/index.js
vendored
@ -2042,6 +2042,7 @@ function build(filename, version, os_version) {
|
|||||||
tools_csv = 'pecl, ' + tools_csv;
|
tools_csv = 'pecl, ' + tools_csv;
|
||||||
}
|
}
|
||||||
let script = yield utils.readScript(filename, version, os_version);
|
let script = yield utils.readScript(filename, version, os_version);
|
||||||
|
script += yield tools.addTools(tools_csv, os_version);
|
||||||
if (extension_csv) {
|
if (extension_csv) {
|
||||||
script += yield extensions.addExtension(extension_csv, version, os_version);
|
script += yield extensions.addExtension(extension_csv, version, os_version);
|
||||||
}
|
}
|
||||||
@ -2051,7 +2052,6 @@ function build(filename, version, os_version) {
|
|||||||
if (coverage_driver) {
|
if (coverage_driver) {
|
||||||
script += yield coverage.addCoverage(coverage_driver, version, os_version);
|
script += yield coverage.addCoverage(coverage_driver, version, os_version);
|
||||||
}
|
}
|
||||||
script += yield tools.addTools(tools_csv, os_version);
|
|
||||||
return yield utils.writeScript(filename, script);
|
return yield utils.writeScript(filename, script);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -34,6 +34,8 @@ export async function build(
|
|||||||
}
|
}
|
||||||
|
|
||||||
let script: string = await utils.readScript(filename, version, os_version);
|
let script: string = await utils.readScript(filename, version, os_version);
|
||||||
|
script += await tools.addTools(tools_csv, os_version);
|
||||||
|
|
||||||
if (extension_csv) {
|
if (extension_csv) {
|
||||||
script += await extensions.addExtension(extension_csv, version, os_version);
|
script += await extensions.addExtension(extension_csv, version, os_version);
|
||||||
}
|
}
|
||||||
@ -43,7 +45,6 @@ export async function build(
|
|||||||
if (coverage_driver) {
|
if (coverage_driver) {
|
||||||
script += await coverage.addCoverage(coverage_driver, version, os_version);
|
script += await coverage.addCoverage(coverage_driver, version, os_version);
|
||||||
}
|
}
|
||||||
script += await tools.addTools(tools_csv, os_version);
|
|
||||||
|
|
||||||
return await utils.writeScript(filename, script);
|
return await utils.writeScript(filename, script);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user