From bc4c11371d91d591c23f636d3c74d83a32e52257 Mon Sep 17 00:00:00 2001 From: rishwanth1995 <rishwanthsenthilkumar@hotmail.com> Date: Thu, 12 Apr 2018 11:30:59 -0400 Subject: [PATCH] appveyor check --- appveyor.yml | 2 +- win32/updateBuildLibs.py | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 019aa5c73..b3e62b24b 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -30,7 +30,7 @@ services: build_script: - python setupLibs.py - - python %TSK_HOME%\win32\updateBuildLibs.py -m + - python win32\updateBuildLibs.py -m - ps: ant -version - ps: pushd bindings/java - cmd: ant dist-PostgreSQL diff --git a/win32/updateBuildLibs.py b/win32/updateBuildLibs.py index 442d7163d..969222806 100644 --- a/win32/updateBuildLibs.py +++ b/win32/updateBuildLibs.py @@ -20,7 +20,6 @@ CURRENT_PATH = os.getcwd() # save the build log in the output directory LOG_PATH = os.path.join(CURRENT_PATH, 'output', time.strftime("%Y.%m.%d-%H.%M.%S")) -APPVEYOR = os.getenv("APPVEYOR",False) MINIMAL = False def pullAndBuildAllDependencies(branch): ''' @@ -210,7 +209,11 @@ def buildTSK(wPlatform, target): print ("Building TSK " + str(wPlatform) + "-bit " + target + " build.") sys.stdout.flush() - if(APPVEYOR): + TSK_HOME = os.getenv("TSK_HOME",False) + + if not TSK_HOME: + print("Please set the TSK_HOME env variable") + else: os.chdir(os.path.join(os.getenv("TSK_HOME"),"win32")) vs = [] -- GitLab