Skip to content
Snippets Groups Projects
Commit c85b52e4 authored by Tom Rini's avatar Tom Rini
Browse files

travis-ci: Drop 'TEST_CMD'


We don't need to use TEST_CMD in order to run tests.  We need a BUILDMAN
and TOOLCHAIN variable to avoid having to duplicate logic or write some
wrapper function.  But this makes the tests harder as we add more
complex examples.

Signed-off-by: default avatarTom Rini <trini@konsulko.com>
Acked-by: default avatarStephen Warren <swarren@nvidia.com>
Reviewed-by: default avatarHeiko Schocher <hs@denx.de>
parent 76761e7f
No related branches found
No related tags found
No related merge requests found
...@@ -57,10 +57,6 @@ before_script: ...@@ -57,10 +57,6 @@ before_script:
- if [[ "${TOOLCHAIN}" == *xtensa* ]]; then ./tools/buildman/buildman --fetch-arch xtensa ; fi - if [[ "${TOOLCHAIN}" == *xtensa* ]]; then ./tools/buildman/buildman --fetch-arch xtensa ; fi
script: script:
# the execution sequence for each test
- if [[ "${TEST_CMD}" != "" ]]; then
${TEST_CMD};
fi
# Exit code 129 means warnings only. # Exit code 129 means warnings only.
- if [[ "${BUILDMAN}" != "" ]]; then - if [[ "${BUILDMAN}" != "" ]]; then
set +e; set +e;
...@@ -154,24 +150,22 @@ matrix: ...@@ -154,24 +150,22 @@ matrix:
# QA jobs for code analytics # QA jobs for code analytics
# static code analysis with cppcheck (we can add --enable=all later) # static code analysis with cppcheck (we can add --enable=all later)
- env: - script:
- TEST_CMD="cppcheck --force --quiet --inline-suppr ." - cppcheck --force --quiet --inline-suppr .
# search for TODO within source tree # search for TODO within source tree
- env: - script:
- TEST_CMD="grep -r TODO ." - grep -r TODO .
# search for FIXME within source tree # search for FIXME within source tree
- env: - script:
- TEST_CMD="grep -r FIXME ." - grep -r FIXME .
# search for HACK within source tree and ignore HACKKIT board # search for HACK within source tree and ignore HACKKIT board
- env:
- TEST_CMD="grep -r HACK . | grep -v HACKKIT"
script: script:
- grep -r HACK . | grep -v HACKKIT - grep -r HACK . | grep -v HACKKIT
# some statistics about the code base # some statistics about the code base
- env: - script:
- TEST_CMD="sloccount ." - sloccount .
# test/py # test/py
- env: - script:
- TEST_CMD="./test/py/test.py --bd sandbox --build" - ./test/py/test.py --bd sandbox --build
# TODO make it perfect ;-r # TODO make it perfect ;-r
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment