Skip to content

Commit

Permalink
Update test setup
Browse files Browse the repository at this point in the history
Signed-off-by: Joshua Li <joshuali925@gmail.com>
  • Loading branch information
joshuali925 committed May 30, 2023
1 parent ab27b24 commit c8d1737
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,6 @@ gen

.java-version
.worktrees
http-client.env.json
http-client.env.json
/doctest/sql-cli/
.factorypath
7 changes: 5 additions & 2 deletions doctest/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,12 @@ def path = project(':').projectDir
// plugin module, and will only build ppl in it.
def plugin_path = project(':doctest').projectDir

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

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

0 comments on commit c8d1737

Please sign in to comment.