diff --git a/__tests__/extensions.test.ts b/__tests__/extensions.test.ts
index e1191c0b..03491255 100644
--- a/__tests__/extensions.test.ts
+++ b/__tests__/extensions.test.ts
@@ -31,7 +31,7 @@ describe('Extension tests', () => {
'7.4',
'linux'
);
- expect(linux).toContain('update_extension xdebug 2.9.0');
+ expect(linux).toContain('update_extension xdebug 2.9.1');
expect(linux).toContain(
'sudo DEBIAN_FRONTEND=noninteractive apt-get install -y php7.4-pcov'
);
diff --git a/__tests__/install.test.ts b/__tests__/install.test.ts
index 45119282..f48dcd2b 100644
--- a/__tests__/install.test.ts
+++ b/__tests__/install.test.ts
@@ -46,7 +46,7 @@ jest.mock('../src/install', () => ({
case 'darwin':
case 'linux':
script = await install.build(os_version + '.sh', version, os_version);
- script += 'sh script.sh ' + version + ' ' + __dirname;
+ script += 'bash script.sh ' + version + ' ' + __dirname;
break;
case 'win32':
script = await install.build(os_version + '.sh', version, os_version);
@@ -117,7 +117,7 @@ describe('Install', () => {
// @ts-ignore
let script: string = await install.run();
expect(script).toContain('initial script');
- expect(script).toContain('sh script.sh 7.3 ');
+ expect(script).toContain('bash script.sh 7.3 ');
setEnv('7.3', 'linux', 'a, b', 'a=b', 'x', 'phpunit', 'true');
// @ts-ignore
@@ -126,7 +126,7 @@ describe('Install', () => {
expect(script).toContain('install extensions');
expect(script).toContain('edit php.ini');
expect(script).toContain('set coverage driver');
- expect(script).toContain('sh script.sh 7.3');
+ expect(script).toContain('bash script.sh 7.3');
expect(script).toContain('add_tool');
setEnv('7.3', 'linux', 'a, b', 'a=b', 'x', 'phpunit', '');
@@ -136,7 +136,7 @@ describe('Install', () => {
expect(script).toContain('install extensions');
expect(script).toContain('edit php.ini');
expect(script).toContain('set coverage driver');
- expect(script).toContain('sh script.sh 7.3');
+ expect(script).toContain('bash script.sh 7.3');
expect(script).toContain('add_tool');
});
@@ -145,7 +145,7 @@ describe('Install', () => {
// @ts-ignore
let script: string = await install.run();
expect(script).toContain('initial script');
- expect(script).toContain('sh script.sh 7.3 ' + __dirname);
+ expect(script).toContain('bash script.sh 7.3 ' + __dirname);
setEnv('7.3', 'darwin', 'a, b', 'a=b', 'x', '', '');
// @ts-ignore
@@ -154,7 +154,7 @@ describe('Install', () => {
expect(script).toContain('install extensions');
expect(script).toContain('edit php.ini');
expect(script).toContain('set coverage driver');
- expect(script).toContain('sh script.sh 7.3 ' + __dirname);
+ expect(script).toContain('bash script.sh 7.3 ' + __dirname);
});
it('Test malformed version inputs', async () => {
@@ -162,18 +162,18 @@ describe('Install', () => {
// @ts-ignore
let script: string = await install.run();
expect(script).toContain('initial script');
- expect(script).toContain('sh script.sh 7.4 ' + __dirname);
+ expect(script).toContain('bash script.sh 7.4 ' + __dirname);
setEnv(8.0, 'darwin', '', '', '', '', '');
// @ts-ignore
script = await install.run();
expect(script).toContain('initial script');
- expect(script).toContain('sh script.sh 8.0 ' + __dirname);
+ expect(script).toContain('bash script.sh 8.0 ' + __dirname);
setEnv(8, 'darwin', '', '', '', '', '');
// @ts-ignore
script = await install.run();
expect(script).toContain('initial script');
- expect(script).toContain('sh script.sh 8.0 ' + __dirname);
+ expect(script).toContain('bash script.sh 8.0 ' + __dirname);
});
});
diff --git a/__tests__/tools.test.ts b/__tests__/tools.test.ts
index 6c7394dd..c6aadaa1 100644
--- a/__tests__/tools.test.ts
+++ b/__tests__/tools.test.ts
@@ -107,22 +107,13 @@ describe('Tools tests', () => {
});
it('checking getCodeceptionUriBuilder', async () => {
- expect(await tools.getCodeceptionUriBuilder('3.2.1', '5.6', 'php56')).toBe(
+ expect(await tools.getCodeceptionUriBuilder('3.2.1', 'php56')).toBe(
'releases/3.2.1/php56/codecept.phar'
);
- expect(await tools.getCodeceptionUriBuilder('3.2.1', '7.0', 'php54')).toBe(
+ expect(await tools.getCodeceptionUriBuilder('3.2.1', 'php54')).toBe(
'releases/3.2.1/php54/codecept.phar'
);
- expect(await tools.getCodeceptionUriBuilder('3.2.1', '7.1', 'php56')).toBe(
- 'releases/3.2.1/php56/codecept.phar'
- );
- expect(await tools.getCodeceptionUriBuilder('3.2.1', '7.2', 'php56')).toBe(
- 'releases/3.2.1/codecept.phar'
- );
- expect(await tools.getCodeceptionUriBuilder('3.2.1', '7.3', 'php56')).toBe(
- 'releases/3.2.1/codecept.phar'
- );
- expect(await tools.getCodeceptionUriBuilder('3.2.1', '7.4', 'php56')).toBe(
+ expect(await tools.getCodeceptionUriBuilder('3.2.1', '')).toBe(
'releases/3.2.1/codecept.phar'
);
});
@@ -146,17 +137,59 @@ describe('Tools tests', () => {
expect(await tools.getCodeceptionUri('latest', '7.4')).toBe(
'codecept.phar'
);
- expect(await tools.getCodeceptionUri('3.2.1', '5.6')).toBe(
- 'releases/3.2.1/php54/codecept.phar'
+ expect(await tools.getCodeceptionUri('4.0.0', '7.4')).toBe(
+ 'releases/4.0.0/codecept.phar'
);
- expect(await tools.getCodeceptionUri('4.3.2', '5.6')).toBe(
- 'releases/4.3.2/php56/codecept.phar'
+ expect(await tools.getCodeceptionUri('4.0.0', '5.6')).toBe(
+ 'releases/4.0.0/php56/codecept.phar'
);
- expect(await tools.getCodeceptionUri('3.2.1', '7.4')).toBe(
- 'releases/3.2.1/codecept.phar'
+ expect(await tools.getCodeceptionUri('4.0.0', '7.1')).toBe(
+ 'releases/4.0.0/php56/codecept.phar'
);
- expect(await tools.getCodeceptionUri('4.3.2', '7.4')).toBe(
- 'releases/4.3.2/codecept.phar'
+ expect(await tools.getCodeceptionUri('3.1.0', '7.4')).toBe(
+ 'releases/3.1.0/codecept.phar'
+ );
+ expect(await tools.getCodeceptionUri('3.1.0', '5.6')).toBe(
+ 'releases/3.1.0/php54/codecept.phar'
+ );
+ expect(await tools.getCodeceptionUri('2.5.4', '7.4')).toBe(
+ 'releases/2.5.4/codecept.phar'
+ );
+ expect(await tools.getCodeceptionUri('2.5.4', '5.6')).toBe(
+ 'releases/2.5.4/php54/codecept.phar'
+ );
+ expect(await tools.getCodeceptionUri('2.3.4', '7.4')).toBe(
+ 'releases/2.3.4/codecept.phar'
+ );
+ expect(await tools.getCodeceptionUri('2.3.4', '5.4')).toBe(
+ 'releases/2.3.4/php54/codecept.phar'
+ );
+ expect(await tools.getCodeceptionUri('2.2.4', '5.6')).toBe(
+ 'releases/2.2.4/codecept.phar'
+ );
+ expect(await tools.getCodeceptionUri('2.2.4', '7.4')).toBe(
+ 'releases/2.2.4/codecept.phar'
+ );
+ expect(await tools.getCodeceptionUri('2.2.4', '5.4')).toBe(
+ 'releases/2.2.4/php54/codecept.phar'
+ );
+ expect(await tools.getCodeceptionUri('2.1.7', '5.6')).toBe(
+ 'releases/2.1.7/codecept.phar'
+ );
+ expect(await tools.getCodeceptionUri('2.1.7', '5.4')).toBe(
+ 'releases/2.1.7/php54/codecept.phar'
+ );
+ expect(await tools.getCodeceptionUri('2.1.5', '5.4')).toBe(
+ 'releases/2.1.5/codecept.phar'
+ );
+ expect(await tools.getCodeceptionUri('2.1.5', '7.4')).toBe(
+ 'releases/2.1.5/codecept.phar'
+ );
+ expect(await tools.getCodeceptionUri('1.6.9', '7.4')).toBe(
+ 'releases/1.6.9/codecept.phar'
+ );
+ expect(await tools.getCodeceptionUri('1.5.0', '7.4')).toBe(
+ 'releases/1.5.0/codecept.phar'
);
});
diff --git a/builds b/builds
new file mode 100644
index 00000000..00771115
--- /dev/null
+++ b/builds
@@ -0,0 +1,607 @@
+
+
+
+
+
+ Codeception Builds
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+