Skip to content

Commit

Permalink
CI: Remove Cirrus CI configuration.
Browse files Browse the repository at this point in the history
We are moving away from using Cirrus CI.

Signed-off-by: Mark Yen <[email protected]>
  • Loading branch information
mook-as committed Oct 3, 2023
1 parent 54f8e17 commit 720e4ca
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 97 deletions.
82 changes: 0 additions & 82 deletions .cirrus.yml

This file was deleted.

15 changes: 0 additions & 15 deletions e2e/utils/TestUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,23 +152,9 @@ export function reportAsset(testPath: string, type: 'trace' | 'log' = 'trace') {
log: 'logs',
}[type];

// Note that CirrusCI doesn't upload folders...
return path.join(__dirname, '..', 'reports', `${ path.basename(testPath) }-${ name }`);
}

export async function packageLogs(testPath: string) {
if (!process.env.CIRRUS_CI) {
console.log('Skipping packaging logs, not running in CirrusCI');

return;
}
const logDir = reportAsset(testPath, 'log');
const outputPath = path.join(__dirname, '..', 'reports', `${ path.basename(testPath) }-logs.tar`);

console.log(`Packaging logs to ${ outputPath }...`);
await childProcess.spawnFile('tar', ['cfh', outputPath, '.'], { cwd: logDir, stdio: 'inherit' });
}

/**
* Tear down the application, without managing logging. This should only be
* used when doing atypical tests that need to restart the application within
Expand Down Expand Up @@ -226,7 +212,6 @@ export async function teardown(app: ElectronApplication, filename: string) {
const context = app.context();

await context.tracing.stop({ path: reportAsset(filename) });
await packageLogs(filename);
await teardownApp(app);

if (testInfo?.testPath === filename) {
Expand Down

0 comments on commit 720e4ca

Please sign in to comment.