diff --git a/travis_build.sh b/travis_build.sh index aec6d5a5ea..35b1cd542e 100755 --- a/travis_build.sh +++ b/travis_build.sh @@ -14,5 +14,13 @@ echo -en 'travis_fold:end:script.build\\r' echo "Testing Autopsy..." && echo -en 'travis_fold:start:script.tests\\r' echo "Free Space:" echo `df -h .` -xvfb-run ant -q test-no-regression + +if [ "${TRAVIS_OS_NAME}" = "osx" ]; then + # if os x, just run it + ant -q test-no-regression +elif [ "${TRAVIS_OS_NAME}" = "linux" ]; then + # if linux use xvfb + xvfb-run ant -q test-no-regression +fi + echo -en 'travis_fold:end:script.tests\\r' \ No newline at end of file