Skip to content

Commit

Permalink
ci: test perf
Browse files Browse the repository at this point in the history
  • Loading branch information
mdonnalley committed Oct 19, 2023
1 parent e270ed3 commit abc3fe0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
17 changes: 10 additions & 7 deletions test/integration/link.integration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ async function exec(cmd: string, opts?: {cwd?: string}) {
})
}

describe('link/unlink integration tests', () => {
;(process.platform === 'win32' ? describe.skip : describe)('link/unlink integration tests', () => {
let sandbox: SinonSandbox
let stubs: ReturnType<typeof ux.makeStubs>

Expand All @@ -32,12 +32,15 @@ describe('link/unlink integration tests', () => {

before(async () => {
try {
await Promise.all([
rm(cacheDir, {force: true, recursive: true}),
rm(configDir, {force: true, recursive: true}),
rm(dataDir, {force: true, recursive: true}),
rm(pluginDir, {force: true, recursive: true}),
])
// no need to clear out directories in CI since they'll always be empty
if (!process.env.CI) {
await Promise.all([
rm(cacheDir, {force: true, recursive: true}),
rm(configDir, {force: true, recursive: true}),
rm(dataDir, {force: true, recursive: true}),
rm(pluginDir, {force: true, recursive: true}),
])
}
} catch {}

await exec(`git clone ${repo} ${pluginDir} --depth 1`)
Expand Down
4 changes: 2 additions & 2 deletions test/integration/sf.integration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ describe('sf Integration', () => {
console.log('process.env.SF_CACHE_DIR:', chalk.dim(process.env.SF_CACHE_DIR))
console.log('process.env.SF_CONFIG_DIR:', chalk.dim(process.env.SF_CONFIG_DIR))

// no need to clear out directories in CI since they'll always be empty
try {
if (process.env.CI) {
// no need to clear out directories in CI since they'll always be empty
if (!process.env.CI) {
await Promise.all([
rm(process.env.SF_DATA_DIR, {force: true, recursive: true}),
rm(process.env.SF_CACHE_DIR, {force: true, recursive: true}),
Expand Down

0 comments on commit abc3fe0

Please sign in to comment.