Skip to content
Snippets Groups Projects
Unverified Commit 79827b85 authored by Brian Carrier's avatar Brian Carrier Committed by GitHub
Browse files

Merge pull request #1208 from rishwanth1995/appveyor_Sleuthkit

appveyor fixed environment variables
parents c612603f 0f97184a
No related branches found
No related tags found
No related merge requests found
...@@ -25,12 +25,13 @@ environment: ...@@ -25,12 +25,13 @@ environment:
LIBEWF_HOME: "C:\\libewf_64bit" LIBEWF_HOME: "C:\\libewf_64bit"
POSTGRESQL_HOME_64: "C:\\Program Files\\PostgreSQL\\9.5" POSTGRESQL_HOME_64: "C:\\Program Files\\PostgreSQL\\9.5"
PYTHON: "C:\\Python36-x64" PYTHON: "C:\\Python36-x64"
JDK_HOME: C:\Program Files\Java\jdk1.8.0
services: services:
- postgresql95; - postgresql95;
build_script: build_script:
- python setupLibs.py - python setupLibs.py
- python %TSK_HOME%\win32\updateBuildLibs.py -m - python win32\updateBuildLibs.py -m
- ps: ant -version - ps: ant -version
- ps: pushd bindings/java - ps: pushd bindings/java
- cmd: ant dist-PostgreSQL - cmd: ant dist-PostgreSQL
......
...@@ -39,17 +39,18 @@ def main(): ...@@ -39,17 +39,18 @@ def main():
base_Library_path["libewf_64bit"] = os.path.dirname(libewf_home) base_Library_path["libewf_64bit"] = os.path.dirname(libewf_home)
else: else:
print('Please set the env variable LIBEWF_HOME') print('Please set the env variable LIBEWF_HOME')
sys.exit(1)
if(libvhdi_home != None): if(libvhdi_home != None):
base_Library_path["libvhdi_64bit"] = os.path.dirname(libvhdi_home) base_Library_path["libvhdi_64bit"] = os.path.dirname(libvhdi_home)
else: else:
print('Please set the env variable LIBVHDI_HOME') print('Please set the env variable LIBVHDI_HOME')
sys.exit(1)
if(libvmdk_home != None): if(libvmdk_home != None):
base_Library_path["libvmdk_64bit"] = os.path.dirname(os.path.dirname(libvmdk_home)) base_Library_path["libvmdk_64bit"] = os.path.dirname(os.path.dirname(libvmdk_home))
else: else:
print('Please set the env variable LIBVMDK_HOME') print('Please set the env variable LIBVMDK_HOME')
sys.exit(1)
setupLibrary(base_Library_path); setupLibrary(base_Library_path);
......
...@@ -20,7 +20,6 @@ ...@@ -20,7 +20,6 @@
CURRENT_PATH = os.getcwd() CURRENT_PATH = os.getcwd()
# save the build log in the output directory # save the build log in the output directory
LOG_PATH = os.path.join(CURRENT_PATH, 'output', time.strftime("%Y.%m.%d-%H.%M.%S")) LOG_PATH = os.path.join(CURRENT_PATH, 'output', time.strftime("%Y.%m.%d-%H.%M.%S"))
APPVEYOR = os.getenv("APPVEYOR",False)
MINIMAL = False MINIMAL = False
def pullAndBuildAllDependencies(branch): def pullAndBuildAllDependencies(branch):
''' '''
...@@ -210,7 +209,12 @@ def buildTSK(wPlatform, target): ...@@ -210,7 +209,12 @@ def buildTSK(wPlatform, target):
print ("Building TSK " + str(wPlatform) + "-bit " + target + " build.") print ("Building TSK " + str(wPlatform) + "-bit " + target + " build.")
sys.stdout.flush() sys.stdout.flush()
if(APPVEYOR): TSK_HOME = os.getenv("TSK_HOME",False)
if not TSK_HOME:
print("Please set the TSK_HOME environment variable")
sys.exit(1)
else:
os.chdir(os.path.join(os.getenv("TSK_HOME"),"win32")) os.chdir(os.path.join(os.getenv("TSK_HOME"),"win32"))
vs = [] vs = []
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment