Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Sleuthkit
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IRT
Sleuthkit
Commits
63052983
Commit
63052983
authored
7 years ago
by
rishwanth1995
Browse files
Options
Downloads
Patches
Plain Diff
added travis and appveyor files from develop
parent
173af0eb
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.travis.yml
+3
-3
3 additions, 3 deletions
.travis.yml
appveyor.yml
+42
-0
42 additions, 0 deletions
appveyor.yml
setupDevRepos.py
+60
-0
60 additions, 0 deletions
setupDevRepos.py
travis_build.sh
+27
-0
27 additions, 0 deletions
travis_build.sh
with
132 additions
and
3 deletions
.travis.yml
+
3
−
3
View file @
63052983
...
@@ -16,11 +16,11 @@ matrix:
...
@@ -16,11 +16,11 @@ matrix:
-
compiler
:
gcc
-
compiler
:
gcc
os
:
osx
os
:
osx
python
:
-
"
2.7"
install
:
install
:
-
./
install-sleuthkit
.sh
-
./
travis_build
.sh
script
:
script
:
-
make check
-
make check
-
if test ${TRAVIS_OS_NAME} = "linux"; then cd release; ./release-unix.pl ci; fi
-
if test ${TRAVIS_OS_NAME} = "linux"; then cd release; ./release-unix.pl ci; fi
# NOTE: OS X doesn't have ant, so CI fails
This diff is collapsed.
Click to expand it.
appveyor.yml
0 → 100644
+
42
−
0
View file @
63052983
version
:
4.6.0.{build}
cache
:
-
C:\Users\appveyor\.ant
-
C:\ProgramData\chocolatey\bin
-
C:\ProgramData\chocolatey\lib
-
C:\libvhdi_64bit
-
C:\libvmdk_64bit
-
C:\libewf_64bit
-
C:\zlib
branches
:
only
:
-
develop
image
:
Visual Studio
2015
install
:
-
ps
:
choco install ant --ignore-dependencies
-
ps
:
$env:Path="C:\Program Files\Java\jdk1.8.0\bin;$($env:Path);C:\ProgramData\chocolatey\lib\ant"
-
set PATH=C:\Python36-x64\';%PATH%
environment
:
global
:
TSK_HOME
:
"
%APPVEYOR_BUILD_FOLDER%"
LIBVHDI_HOME
:
"
C:
\\
libvhdi_64bit"
LIBVMDK_HOME
:
"
C:
\\
libvmdk_64bit
\\
libvmdk"
LIBEWF_HOME
:
"
C:
\\
libewf_64bit"
POSTGRESQL_HOME_64
:
"
C:
\\
Program
Files
\\
PostgreSQL
\\
9.5"
PYTHON
:
"
C:
\\
Python36-x64"
JDK_HOME
:
C:\Program Files\Java\jdk1.8.0
services
:
-
postgresql95;
build_script
:
-
python setupDevRepos.py
-
python win32\updateAndBuildAll.py -m
-
ps
:
ant -version
-
ps
:
pushd bindings/java
-
cmd
:
ant -q dist-PostgreSQL
-
ps
:
popd
test
:
off
This diff is collapsed.
Click to expand it.
setupDevRepos.py
0 → 100644
+
60
−
0
View file @
63052983
# Copyright (c) 2017 Basis Technology.
#
# This software is distributed under the Common Public License 1.0
#
# This script makes the repositories needed to compile The Sleuth Kit and its dependencies.
# To use it, first define the needed environment variables (such as LIBEWF_HOME). This script
# will then clone the git repositories into those locations.
import
os
import
subprocess
import
sys
def
setupLibrary
(
path
):
'''
sets up the library path variable
'''
git_repository_url
=
"
https://github.com/sleuthkit/
"
git_zlib_repository_url
=
"
https://github.com/madler/
"
zlib_path
=
os
.
path
.
normpath
(
os
.
path
.
join
(
path
[
"
libewf_64bit
"
],
"
zlib
"
))
if
not
os
.
path
.
exists
(
zlib_path
):
gitClone
(
git_zlib_repository_url
,
"
zlib
"
,
path
[
"
libewf_64bit
"
])
for
library
,
base_library_path
in
path
.
items
():
library_path
=
os
.
path
.
normpath
(
os
.
path
.
join
(
base_library_path
,
library
))
if
not
os
.
path
.
exists
(
library_path
):
gitClone
(
git_repository_url
,
library
,
base_library_path
)
def
gitClone
(
URL
,
repo
,
path
):
# This method will clone the library if it does not exist
cmd
=
[
"
git
"
,
"
clone
"
,
URL
+
repo
+
"
.git
"
]
ret
=
subprocess
.
call
(
cmd
,
stdout
=
sys
.
stdout
,
cwd
=
path
)
if
ret
!=
0
:
sys
.
exit
(
1
)
def
main
():
#setting the base directory with the help of library env variables.
libewf_home
=
os
.
getenv
(
"
LIBEWF_HOME
"
)
libvhdi_home
=
os
.
getenv
(
"
LIBVHDI_HOME
"
)
libvmdk_home
=
os
.
getenv
(
"
LIBVMDK_HOME
"
)
base_Library_path
=
{}
if
(
libewf_home
!=
None
):
base_Library_path
[
"
libewf_64bit
"
]
=
os
.
path
.
dirname
(
libewf_home
)
else
:
print
(
'
Please set the env variable LIBEWF_HOME
'
)
sys
.
exit
(
1
)
if
(
libvhdi_home
!=
None
):
base_Library_path
[
"
libvhdi_64bit
"
]
=
os
.
path
.
dirname
(
libvhdi_home
)
else
:
print
(
'
Please set the env variable LIBVHDI_HOME
'
)
sys
.
exit
(
1
)
if
(
libvmdk_home
!=
None
):
base_Library_path
[
"
libvmdk_64bit
"
]
=
os
.
path
.
dirname
(
os
.
path
.
dirname
(
libvmdk_home
))
else
:
print
(
'
Please set the env variable LIBVMDK_HOME
'
)
sys
.
exit
(
1
)
setupLibrary
(
base_Library_path
);
if
__name__
==
'
__main__
'
:
main
()
This diff is collapsed.
Click to expand it.
travis_build.sh
0 → 100755
+
27
−
0
View file @
63052983
#!/bin/sh
set
-ex
installLib
()
{
git clone https://github.com/libyal/
$1
cd
$1
./synclibs.sh
./autogen.sh
if
test
${
TRAVIS_OS_NAME
}
=
"linux"
;
then
./configure
-prefix
=
/usr
>
/dev/null
else
./configure
>
/dev/null
fi
make
>
/dev/null
&&
sudo
make
install
>
/dev/null
cd
..
}
if
test
${
TRAVIS_OS_NAME
}
=
"linux"
;
then
sudo
apt-get
-qq
update
sudo
apt-get
-y
install
libafflib-dev libewf-dev libpq-dev autopoint libsqlite3-dev ant libcppunit-dev
elif
test
${
TRAVIS_OS_NAME
}
=
"osx"
;
then
export
PATH
=
${
PATH
}
:/usr/local/opt/gettext/bin
brew
install
ant libewf gettext
fi
installLib libvhdi
installLib libvmdk
./bootstrap
&&
./configure
--prefix
=
/usr
&&
make
>
/dev/null
cd
bindings/java/
&&
ant
-q
dist-PostgreSQL
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment