uvg266/.travis-script.sh
Arttu Ylä-Outinen 7a12f6c8d4 Migrate to container-based travis infrastructure.
- Moves travis package installations to addons.apt.packages.
- Disables sudo in travis configuration.
- Substitutes nasm for yasm in travis builds since yasm is not available
  on travis.
2015-07-20 15:30:28 +03:00

21 lines
422 B
Bash
Executable file

#!/bin/sh
set -ev
if [ -n "$VALGRIND_TEST" ]; then
cd src
make -e debug
valgrind --leak-check=full --error-exitcode=1 ./kvazaar_debug -i ../mandelbrot_${TEST_DIM}.yuv --input-res=${TEST_DIM} -o /dev/null $VALGRIND_TEST
elif [ -n "$EXPECTED_STATUS" ]; then
cd src
make -e
set +e
./kvazaar $PARAMS
EXIT_STATUS=$?
set -e
[ "$EXIT_STATUS" = "$EXPECTED_STATUS" ]
else
cd src
make -e
make -e tests
fi