Skip to content

Commit c68c36b

Browse files
committed
check-build-and-verify.sh: run rflint.
Addressed to #530
1 parent 7cfaf2d commit c68c36b

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ before_script:
1515
fi;
1616
npm install -g bootlint;
1717
pip install --user html5validator;
18+
pip install --user robotframework-lint;
1819
fi
1920

2021
script:

src/main/scripts/ci/check-build-and-verify.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ CODENARC_FAIL=
1313
LICENSE_FAIL=
1414
POM_FAIL=
1515
BOOTLINT_FAIL=
16+
RFLINT_FAIL=
1617
JASMINE_FAIL=
1718
HTML_FAIL=
1819
TEST_FAIL=
@@ -30,6 +31,7 @@ if [ "$RUN_ONLY_INTEGRATION_TESTS" = 'no' ]; then
3031
mvn --batch-mode license:check >license.log 2>&1 || LICENSE_FAIL=yes
3132
mvn --batch-mode sortpom:verify -Dsort.verifyFail=stop >pom.log || POM_FAIL=yes
3233
find src -type f -name '*.html' | xargs bootlint >bootlint.log 2>&1 || BOOTLINT_FAIL=yes
34+
rflint --ignore TooFewKeywordStep src/test/robotframework >rflint.log 2>&1 || RFLINT_FAIL=yes
3335
mvn --batch-mode jasmine:test >jasmine.log 2>&1 || JASMINE_FAIL=yes
3436
# FIXME: add check for src/main/config/nginx/503.*html
3537
# TODO: remove ignoring of error about alt attribute after resolving #314
@@ -64,6 +66,7 @@ if [ "$RUN_ONLY_INTEGRATION_TESTS" = 'no' ]; then
6466
print_status "$LICENSE_FAIL" 'Check license headers'
6567
print_status "$POM_FAIL" 'Check sorting of pom.xml'
6668
print_status "$BOOTLINT_FAIL" 'Run bootlint'
69+
print_status "$RFLINT_FAIL" 'Run robot framework lint'
6770
print_status "$JASMINE_FAIL" 'Run JavaScript unit tests'
6871
print_status "$HTML_FAIL" 'Run html5validator'
6972
print_status "$TEST_FAIL" 'Run unit tests'
@@ -81,6 +84,7 @@ if [ "$RUN_ONLY_INTEGRATION_TESTS" = 'no' ]; then
8184
print_log license.log 'Check license headers'
8285
print_log pom.log 'Check sorting of pom.xml'
8386
print_log bootlint.log 'Run bootlint'
87+
print_log rflint.log 'Run robot framework lint'
8488
print_log jasmine.log 'Run JavaScript unit tests'
8589
print_log validator.log 'Run html5validator'
8690
print_log test.log 'Run unit tests'
@@ -89,8 +93,8 @@ fi
8993

9094
print_log verify.log 'Run integration tests'
9195

92-
rm -f cs.log pmd.log codenarc.log license.log bootlint.log jasmine.log validator.log test.log findbugs.log verify.log
96+
rm -f cs.log pmd.log codenarc.log license.log bootlint.log rflint.log jasmine.log validator.log test.log findbugs.log verify.log
9397

94-
if [ -n "$CS_FAIL$PMD_FAIL$CODENARC_FAIL$LICENSE_FAIL$POM_FAIL$BOOTLINT_FAIL$JASMINE_FAIL$HTML_FAIL$TEST_FAIL$FINDBUGS_FAIL$VERIFY_FAIL" ]; then
98+
if [ -n "$CS_FAIL$PMD_FAIL$CODENARC_FAIL$LICENSE_FAIL$POM_FAIL$BOOTLINT_FAIL$RFLINT_FAIL$JASMINE_FAIL$HTML_FAIL$TEST_FAIL$FINDBUGS_FAIL$VERIFY_FAIL" ]; then
9599
exit 1
96100
fi

0 commit comments

Comments
 (0)