Build test then run them

We do not run the test suite at the `make check` stage here in order to
have a better output.
This commit is contained in:
Romain Tartière 2017-06-26 12:49:54 +02:00
parent 7536bbde06
commit be3e581eff
2 changed files with 5 additions and 1 deletions

View file

@ -22,4 +22,4 @@ install:
- ./.travis-ci-build libnfc - ./.travis-ci-build libnfc
script: script:
- ./.travis-ci-build . - ./.travis-ci-build .
- if [ "$BLD" = autotools ]; then (cd build-autotools && cutter test); fi - if [ "$BLD" = autotools ]; then (cd build-autotools && make check TESTS_ENVIRONMENT=SKIP_TESTS=1 && cutter test); fi

View file

@ -1,5 +1,9 @@
#!/bin/sh #!/bin/sh
if [ -n "${SKIP_TESTS}" ]; then
exit 0
fi
export BASE_DIR="`dirname $0`" export BASE_DIR="`dirname $0`"
if test -z "$NO_MAKE"; then if test -z "$NO_MAKE"; then