forked from libyal/libpff
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
32c43ea
commit 7d9c37e
Showing
14 changed files
with
237 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
#!/bin/sh | ||
# Script to run before_install step on Travis-CI | ||
# | ||
# Version: 20190808 | ||
|
||
# Exit on error. | ||
set -e; | ||
|
||
if test ${TARGET} = "docker"; | ||
then | ||
sudo apt-get update; | ||
sudo apt-mark hold mysql-server-5.7 postgresql-9.4 postgresql-client-9.4 postgresql-9.5 postgresql-client-9.5 postgresql-9.6 postgresql-client-9.6 postgresql-10 postgresql-client-10; | ||
sudo apt-get --fix-missing -o Dpkg::Options::="--force-confold" upgrade -y --allow-unauthenticated; | ||
|
||
sudo apt-get install -y qemu-user-static; | ||
|
||
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes; | ||
|
||
elif test ${TRAVIS_OS_NAME} = "linux" || test ${TRAVIS_OS_NAME} = "linux-ppc64le"; | ||
then | ||
sudo apt-get update; | ||
sudo apt-mark hold mysql-server-5.7 postgresql-9.4 postgresql-client-9.4 postgresql-9.5 postgresql-client-9.5 postgresql-9.6 postgresql-client-9.6 postgresql-10 postgresql-client-10; | ||
sudo apt-get --fix-missing -o Dpkg::Options::="--force-confold" upgrade -y --allow-unauthenticated; | ||
|
||
sudo apt-get install -y autopoint zlib1g-dev; | ||
|
||
elif test ${TRAVIS_OS_NAME} = "osx"; | ||
then | ||
brew update | ||
|
||
brew install gettext gnu-sed; | ||
brew link --force gettext; | ||
fi | ||
|
||
if test ${TARGET} = "coverity"; | ||
then | ||
echo -n | openssl s_client -connect scan.coverity.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo tee -a /etc/ssl/certs/ca-; | ||
fi | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/bin/sh | ||
# Script to run install step on Travis-CI | ||
# | ||
# Version: 20190802 | ||
|
||
# Exit on error. | ||
set -e; | ||
|
||
if test ${TARGET} != "docker"; | ||
then | ||
if test ${TRAVIS_OS_NAME} = "osx"; | ||
then | ||
export SED="/usr/local/bin/gsed"; | ||
fi | ||
|
||
./synclibs.sh --use-head; | ||
./autogen.sh; | ||
|
||
if test ${TARGET} = "linux-gcc-shared" || test ${TARGET} = "linux-gcc-shared-wide-character-type"; | ||
then | ||
./configure > /dev/null; | ||
make > /dev/null; | ||
|
||
./syncsharedlibs.sh --use-head; | ||
fi | ||
|
||
if test -x "synctestdata.sh"; | ||
then | ||
./synctestdata.sh; | ||
fi | ||
fi | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/bin/sh | ||
# Script to run tests on Travis-CI | ||
# | ||
# Version: 20190808 | ||
|
||
./configure ${CONFIGURE_OPTIONS}; | ||
RESULT=$?; | ||
|
||
if test ${RESULT} -eq 0; | ||
then | ||
make > /dev/null; | ||
RESULT=$?; | ||
fi | ||
if test ${RESULT} -eq 0; | ||
then | ||
if test ${TARGET} = "macos-gcc-python" || test ${TARGET} = "macos-gcc-pkgbuild"; | ||
then | ||
install_name_tool -change /usr/local/lib/libpff.1.dylib ${PWD}/libpff/.libs/libpff.1.dylib ./pypff/.libs/pypff.so; | ||
fi | ||
make check CHECK_WITH_STDERR=1; | ||
RESULT=$?; | ||
fi | ||
if test ${RESULT} -ne 0; | ||
then | ||
if test -f tests/test-suite.log; | ||
then | ||
cat tests/test-suite.log; | ||
fi | ||
fi | ||
exit ${RESULT}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
#!/bin/sh | ||
# Script to run script step on Travis-CI | ||
# | ||
# Version: 20190808 | ||
|
||
# Exit on error. | ||
set -e; | ||
|
||
if test ${TRAVIS_OS_NAME} = "linux" || test ${TRAVIS_OS_NAME} = "linux-ppc64le"; | ||
then | ||
export PATH=$(echo $PATH | tr ":" "\n" | sed '/\/opt\/python/d' | tr "\n" ":" | sed "s/::/:/g"); | ||
fi | ||
|
||
if test ${TARGET} = "docker"; | ||
then | ||
docker run -t -v "${PWD}:/libpff" ${DOCKERHUB_REPO}:${DOCKERHUB_TAG} sh -c "cd libpff && .travis/script_docker.sh"; | ||
|
||
elif test ${TARGET} = "linux-gcc-python-setup-py" || test ${TARGET} = "macos-gcc-python-setup-py"; | ||
then | ||
./configure ${CONFIGURE_OPTIONS}; | ||
make > /dev/null; | ||
python ./setup.py build; | ||
|
||
elif test ${TARGET} != "coverity"; | ||
then | ||
.travis/runtests.sh; | ||
|
||
if test ${TARGET} = "macos-gcc-pkgbuild"; | ||
then | ||
export VERSION=`sed '5!d; s/^ \[//;s/\],$//' configure.ac`; | ||
|
||
make install DESTDIR=${PWD}/osx-pkg; | ||
mkdir -p ${PWD}/osx-pkg/usr/share/doc/libpff; | ||
cp AUTHORS COPYING NEWS README ${PWD}/osx-pkg/usr/share/doc/libpff; | ||
|
||
pkgbuild --root osx-pkg --identifier com.github.libyal.libpff --version ${VERSION} --ownership recommended ../libpff-${VERSION}.pkg; | ||
fi | ||
fi | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/bin/sh | ||
# Script to run script step on Travis-CI with Docker | ||
# | ||
# Version: 20190809 | ||
|
||
# Exit on error. | ||
set -e; | ||
|
||
export DEBIAN_FRONTEND="noninteractive"; | ||
|
||
apt-get update -q; | ||
|
||
# Install add-apt-repository and locale-gen. | ||
apt-get install -y locales software-properties-common; | ||
|
||
# Set locale to US English and UTF-8. | ||
locale-gen en_US.UTF-8; | ||
|
||
# Install packages essential for building. | ||
apt-get install -y autoconf automake build-essential git libtool pkg-config autopoint; | ||
|
||
export LANG="en_US.UTF-8"; | ||
|
||
./synclibs.sh --use-head; | ||
|
||
./autogen.sh; | ||
|
||
.travis/runtests.sh; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ AC_PREREQ( 2.59 ) | |
|
||
AC_INIT( | ||
[libpff], | ||
[20190725], | ||
[20190904], | ||
[[email protected]]) | ||
|
||
AC_CONFIG_SRCDIR( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.