Run tests in small scripts
This is so we get a proper shell where running set -xe makes sense allowing travis to pick up nicely on how the tests run (ie. marking them as failed and not errored when the fail).
This commit is contained in:
parent
9b3d0c90da
commit
7a3d87a4b2
19
.travis.yml
19
.travis.yml
|
@ -67,20 +67,5 @@ before_script:
|
||||||
- psql -c 'ALTER USER libretime CREATEDB;' -U postgres
|
- psql -c 'ALTER USER libretime CREATEDB;' -U postgres
|
||||||
- mkdir -p /tmp/log/libretime
|
- mkdir -p /tmp/log/libretime
|
||||||
script:
|
script:
|
||||||
- >
|
- ./travis/php.sh
|
||||||
if [[ "$PYTHON" == false ]]; then
|
- ./travis/python.sh
|
||||||
pushd airtime_mvc/tests
|
|
||||||
../../vendor/bin/phpunit
|
|
||||||
results=$?
|
|
||||||
popd
|
|
||||||
exit $results
|
|
||||||
fi
|
|
||||||
- >
|
|
||||||
if [[ "$PYTHON" == true ]]; then
|
|
||||||
pushd python_apps/airtime_analyzer
|
|
||||||
nosetests -a '!rgain'
|
|
||||||
results=$?
|
|
||||||
echo "replaygain tests where skipped due to not having a reliable replaygain install on travis."
|
|
||||||
popd
|
|
||||||
exit $results
|
|
||||||
fi
|
|
||||||
|
|
|
@ -0,0 +1,9 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -xe
|
||||||
|
|
||||||
|
[[ "$PYTHON" == true ]] && exit 0
|
||||||
|
|
||||||
|
pushd airtime_mvc/tests
|
||||||
|
../../vendor/bin/phpunit
|
||||||
|
popd
|
|
@ -0,0 +1,10 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -xe
|
||||||
|
|
||||||
|
[[ "$PYTHON" == false ]] && exit 0
|
||||||
|
|
||||||
|
pushd python_apps/airtime_analyzer
|
||||||
|
nosetests -a '!rgain'
|
||||||
|
echo "replaygain tests where skipped due to not having a reliable replaygain install on travis."
|
||||||
|
popd
|
Loading…
Reference in New Issue