mirror of
https://github.com/tiktok/sparo.git
synced 2024-11-14 19:35:12 -05:00
chore: use test branch
This commit is contained in:
parent
22362507b9
commit
57842c3938
1 changed files with 3 additions and 7 deletions
|
@ -21,16 +21,17 @@ export async function runAsync(runScriptOptions: IRunScriptOptions): Promise<voi
|
||||||
|
|
||||||
const temporaryDirectory: string = path.resolve(buildFolderPath, 'temp');
|
const temporaryDirectory: string = path.resolve(buildFolderPath, 'temp');
|
||||||
const testRepoURL: string = 'https://github.com/tiktok/sparo.git';
|
const testRepoURL: string = 'https://github.com/tiktok/sparo.git';
|
||||||
|
const testBranch: string = 'test-artifacts/sparo-real-repo-test';
|
||||||
const repoFolder: string = path.resolve(temporaryDirectory, 'sparo');
|
const repoFolder: string = path.resolve(temporaryDirectory, 'sparo');
|
||||||
|
|
||||||
await FileSystem.deleteFolderAsync(repoFolder);
|
await FileSystem.deleteFolderAsync(repoFolder);
|
||||||
|
|
||||||
const commandDefinitions: ICommandDefinition[] = [
|
const commandDefinitions: ICommandDefinition[] = [
|
||||||
// sparo clone git@github.com:tiktok/sparo.git --branch build-test
|
// sparo clone git@github.com:tiktok/sparo.git --branch test-artifacts/sparo-real-repo-test
|
||||||
{
|
{
|
||||||
kind: 'sparo-command',
|
kind: 'sparo-command',
|
||||||
name: 'clone',
|
name: 'clone',
|
||||||
args: ['clone', testRepoURL, '--branch', 'build-test'],
|
args: ['clone', testRepoURL, '--branch', testBranch],
|
||||||
currentWorkingDirectory: temporaryDirectory
|
currentWorkingDirectory: temporaryDirectory
|
||||||
},
|
},
|
||||||
// sparo init-profile --profile my-build-test
|
// sparo init-profile --profile my-build-test
|
||||||
|
@ -105,9 +106,4 @@ export async function runAsync(runScriptOptions: IRunScriptOptions): Promise<voi
|
||||||
logger,
|
logger,
|
||||||
production
|
production
|
||||||
});
|
});
|
||||||
|
|
||||||
// Clean up the temporary directory in CI builds, but leave it for local debugging
|
|
||||||
if (production) {
|
|
||||||
await FileSystem.deleteFolderAsync(repoFolder);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue