Skip to content

Commit c8d1737

Browse files
committed
Update test setup
Signed-off-by: Joshua Li <[email protected]>
1 parent ab27b24 commit c8d1737

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,6 @@ gen
4747

4848
.java-version
4949
.worktrees
50-
http-client.env.json
50+
http-client.env.json
51+
/doctest/sql-cli/
52+
.factorypath

doctest/build.gradle

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,12 @@ def path = project(':').projectDir
1919
// plugin module, and will only build ppl in it.
2020
def plugin_path = project(':doctest').projectDir
2121

22-
task cloneSqlCli(type: Exec) {
22+
task cloneSqlCli() {
2323
// clone the sql-cli repo locally
24-
commandLine 'git', 'clone', 'https://github.com/opensearch-project/sql-cli.git'
24+
def cliRepo = new File("$projectDir/sql-cli")
25+
if(!cliRepo.exists()) {
26+
exec { commandLine 'git', 'clone', 'https://github.com/opensearch-project/sql-cli.git' }
27+
}
2528
}
2629

2730
task bootstrap(type: Exec, dependsOn: ['cloneSqlCli']) {

0 commit comments

Comments
 (0)