Merge pull request #5394 from esaunders/5322-macos-build

5322 macos build
This commit is contained in:
Richard Cordovano 2019-11-05 10:11:45 -05:00 committed by GitHub
commit bd06cb0af9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 32 additions and 16 deletions

View File

@ -1,8 +1,11 @@
language: java language: java
sudo: required sudo: required
dist: bionic
os: jobs:
- linux include:
- os: linux
dist: bionic
- os: osx
env: env:
global: global:
@ -12,6 +15,7 @@ addons:
apt: apt:
update: true update: true
packages: packages:
- testdisk
- libafflib-dev - libafflib-dev
- libewf-dev - libewf-dev
- libpq-dev - libpq-dev
@ -29,11 +33,13 @@ addons:
update: true update: true
packages: packages:
- ant - ant
- ant-optional - wget
- libpq
- libewf - libewf
- gettext - gettext
- cppunit - cppunit
- afflib - afflib
- testdisk
python: python:
- "2.7" - "2.7"
@ -43,9 +49,7 @@ before_install:
- python setupSleuthkitBranch.py - python setupSleuthkitBranch.py
install: install:
- sudo apt-get install testdisk - pushd sleuthkit/sleuthkit && ./travis_install_libs.sh && popd
- cd sleuthkit/sleuthkit
- ./travis_install_libs.sh
before_script: before_script:
- if [ $TRAVIS_OS_NAME = linux ]; then - if [ $TRAVIS_OS_NAME = linux ]; then
@ -54,13 +58,13 @@ before_script:
export PATH=/usr/bin:$PATH; export PATH=/usr/bin:$PATH;
unset JAVA_HOME; unset JAVA_HOME;
fi fi
- if [ $TRAVIS_OS_NAME = osx ]; then
brew uninstall java --force;
brew cask uninstall java --force;
brew tap homebrew/cask-versions;
brew cask install corretto8;
export JAVA_HOME=/Library/Java/JavaVirtualMachines/amazon-corretto-8.jdk/Contents/Home;
fi
- java -version
script: script: ./travis_build.sh
- set -e
- echo "Building TSK..."
- ./bootstrap && ./configure --prefix=/usr && make
- pushd bindings/java/ && ant -q dist-PostgreSQL && popd
- echo "Building Autopsy..." && echo -en 'travis_fold:start:script.build\\r'
- cd $TRAVIS_BUILD_DIR/
- ant build
- echo -en 'travis_fold:end:script.build\\r'

12
travis_build.sh Normal file
View File

@ -0,0 +1,12 @@
#!/bin/bash
set -e
echo "Building TSK..."
cd sleuthkit/sleuthkit
./bootstrap && configure --prefix=/usr && make
pushd bindings/java && ant -q dist-PostgreSQL && popd
echo "Building Autopsy..." && echo -en 'travis_fold:start:script.build\\r'
cd $TRAVIS_BUILD_DIR/
ant build
echo -en 'travis_fold:end:script.build\\r'