Skip to content

Commit

Permalink
fix(.scripts/deploy): skip tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MinecraftFuns committed Aug 21, 2024
1 parent 9642166 commit ab03d4b
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions .scripts/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,29 @@ def main():

# Gradle build - analysis
os.chdir(analysis_dir)
subprocess.run(args=("gradlew.bat" if is_my_laptop else "./gradlew", "build"))
subprocess.run(
args=(
"gradlew.bat" if is_my_laptop else "./gradlew",
"build",
"--exclude-task",
"test",
)
)
os.chdir(current_dir)

# Copy build result to the deploy folder
shutil.copyfile(jar_path, SAFETO_ANALYSIS_PATH)

# Gradle build - backend
os.chdir(backend_dir)
subprocess.run(args=("gradlew.bat" if is_my_laptop else "./gradlew", "build"))
subprocess.run(
args=(
"gradlew.bat" if is_my_laptop else "./gradlew",
"build",
"--exclude-task",
"test",
)
)
os.chdir(current_dir)

# Copy build result to the deploy folder
Expand Down

0 comments on commit ab03d4b

Please sign in to comment.