don't use xvfb on osx

This commit is contained in:
Greg DiCristofaro 2020-11-02 21:26:23 -05:00
parent eee465f770
commit 7f54d0d1a5

View File

@ -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'