Skip to content

Commit

Permalink
add log
Browse files Browse the repository at this point in the history
  • Loading branch information
kartikeytewari-ul committed Jun 24, 2024
1 parent 184f852 commit b926bd2
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
26 changes: 26 additions & 0 deletions build.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# SDK configuration
BUILD_OPTIONS = MAVEN_OPTS="--add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.lang.reflect=ALL-UNNAMED --add-opens=java.base/java.text=ALL-UNNAMED --add-opens=java.desktop/java.awt.font=ALL-UNNAMED"
SDK_VERSION := $(shell mvn help:evaluate -Dexpression=project.version -q -DforceStdout)

compile:
${BUILD_OPTIONS} mvn install -DskipTests

run:


clean:
${BUILD_OPTIONS} mvn clean
rm -rf sdk_build/*
rm -rf ~/.unlogged
rm -rf ~/.m2/repository/video/bug/unlogged-sdk/${SDK_VERSION}

package:
zip -jr ./sdk_build/${SDK_VERSION}.zip ~/.m2/repository/video/bug/unlogged-sdk/${SDK_VERSION}

test_compile: clean
source ./src/test/python/venv/bin/activate &&\
python3 src/test/python/compile_target.py ${SDK_VERSION}

test_replay: clean
source ./src/test/python/venv/bin/activate &&\
python3 src/test/python/replay_target.py ${SDK_VERSION}
1 change: 1 addition & 0 deletions src/test/python/compile_target.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ def compile_target (target):
compile_command = "cd " + target.test_repo_name + " && gradle clean compileJava"

# target compile
print ("compile_command = " + compile_command)
response_code = os.system(compile_command)
if (response_code == 0):
print ("Target compiled succesfully: " + target.test_repo_name)
Expand Down

0 comments on commit b926bd2

Please sign in to comment.