diff options
author | jugglinmike <mike@mikepennisi.com> | 2017-05-01 12:04:05 -0400 |
---|---|---|
committer | Leo Balter <leonardo.balter@gmail.com> | 2017-05-01 12:04:05 -0400 |
commit | 74954bfa915136c7998f8a0d9ca40b885075d409 (patch) | |
tree | 61c91d90c8f612dad18bffee1e59720f734998c9 /tools/scripts | |
parent | 7bb4cd8f417f9568521d62d282a7aec9b46699c1 (diff) | |
download | qtdeclarative-testsuites-74954bfa915136c7998f8a0d9ca40b885075d409.tar.gz |
Introduce automated validation for test format (#994)
This script is intended to identify common test file formatting errors
prior to their acceptance into the project. It is designed to support
future extensions for additional validation rules.
Diffstat (limited to 'tools/scripts')
-rwxr-xr-x[-rw-r--r--] | tools/scripts/ci_build.sh (renamed from tools/scripts/ci.sh) | 0 | ||||
-rwxr-xr-x | tools/scripts/ci_lint.sh | 18 | ||||
-rwxr-xr-x[-rw-r--r--] | tools/scripts/deploy.sh | 0 |
3 files changed, 18 insertions, 0 deletions
diff --git a/tools/scripts/ci.sh b/tools/scripts/ci_build.sh index 478880c2a..478880c2a 100644..100755 --- a/tools/scripts/ci.sh +++ b/tools/scripts/ci_build.sh diff --git a/tools/scripts/ci_lint.sh b/tools/scripts/ci_lint.sh new file mode 100755 index 000000000..75b3fb6a0 --- /dev/null +++ b/tools/scripts/ci_lint.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then + paths=$(git diff --diff-filter ACMR --name-only $TRAVIS_BRANCH -- test/) + + if [ "$paths" == "" ]; then + echo No test files added or modified. Exiting. + exit 0 + fi + + echo New or modified test files: + echo "$paths" + +else + paths="test/" +fi + +./tools/lint/lint.py --whitelist lint.whitelist $paths diff --git a/tools/scripts/deploy.sh b/tools/scripts/deploy.sh index 44c6f968b..44c6f968b 100644..100755 --- a/tools/scripts/deploy.sh +++ b/tools/scripts/deploy.sh |