travis_run_tests.sh 508 Bytes
Newer Older
1 2
#!/bin/bash

3
export PERL5LIB=$PWD/bioperl-live-bioperl-release-1-2-3:$PWD/modules
4 5 6

echo "Running test suite"
if [ "$COVERALLS" = 'true' ]; then
Matthieu Muffato's avatar
Matthieu Muffato committed
7
  PERL5OPT='-MDevel::Cover=+ignore,bioperl,+ignore,ensembl-test' perl $PWD/scripts/run_tests.pl -verbose t $SKIP_TESTS
8
else
Matthieu Muffato's avatar
Matthieu Muffato committed
9
  perl $PWD/scripts/run_tests.pl t $SKIP_TESTS
10 11 12 13 14 15 16 17 18 19 20 21
fi

rt=$?
if [ $rt -eq 0 ]; then
  if [ "$COVERALLS" = 'true' ]; then
    echo "Running Devel::Cover coveralls report"
    cover --nosummary -report coveralls
  fi
  exit $?
else
  exit $rt
fi