This repository was archived by the owner on Jul 3, 2024. It is now read-only.
File tree 4 files changed +23
-2
lines changed
4 files changed +23
-2
lines changed Original file line number Diff line number Diff line change 20
20
- TEST_RUN="./tests/test-docker.sh"
21
21
22
22
before_install :
23
- - npm install eslint
23
+ - npm install eslint html-lint csslint
24
24
- sudo pip install yamllint
25
25
26
26
install : true
27
27
28
28
before_script :
29
+ - " ./tests/test-csslint.sh"
29
30
- " ./tests/test-eslint.sh"
31
+ - " ./tests/test-html-lint.sh"
30
32
- " ./tests/test-shellcheck.sh"
31
33
- " ./tests/test-yamllint.sh"
32
34
Original file line number Diff line number Diff line change
1
+ #! /bin/bash -e
2
+
3
+ # shellcheck disable=SC1090
4
+ source " $( dirname " $0 " ) " /../scripts/resources.sh
5
+
6
+ if find . -path ./node_modules -prune -o -name ' *.css' -print0 | xargs -n1 -0 ./node_modules/.bin/csslint --ignore=order-alphabetical; then
7
+ test_passed " $0 "
8
+ else
9
+ test_failed " $0 "
10
+ fi
Original file line number Diff line number Diff line change
1
+ #! /bin/bash -e
2
+
3
+ # shellcheck disable=SC1090
4
+ source " $( dirname " $0 " ) " /../scripts/resources.sh
5
+
6
+ if find . -path ./node_modules -prune -o \( -name ' *.htm' -o -name ' *.html' \) -print0 | xargs -n1 -0 -I % ./node_modules/.bin/html-lint % --verbose --strict; then
7
+ test_passed " $0 "
8
+ else
9
+ test_failed " $0 "
10
+ fi
Original file line number Diff line number Diff line change 3
3
# shellcheck disable=SC1090
4
4
source " $( dirname " $0 " ) " /../scripts/resources.sh
5
5
6
- # IGNORE node_modules
7
6
if find . -path ./node_modules -prune -o \( -name ' *.yml' -o -name ' *.yaml' \) -print0 | xargs -n1 -0 yamllint -c .yamllint.yml; then
8
7
test_passed " $0 "
9
8
else
You can’t perform that action at this time.
0 commit comments