committed by
Julius Härtl
parent
a2adcf2487
commit
f8f755f31e
@@ -150,6 +150,13 @@ pipeline:
|
|||||||
when:
|
when:
|
||||||
matrix:
|
matrix:
|
||||||
TESTS: integration
|
TESTS: integration
|
||||||
|
eslint:
|
||||||
|
image: nextcloudci/eslint:eslint-1
|
||||||
|
commands:
|
||||||
|
- ./run-eslint.sh
|
||||||
|
when:
|
||||||
|
matrix:
|
||||||
|
TESTS: eslint
|
||||||
jsbuild:
|
jsbuild:
|
||||||
image: mhart/alpine-node:6.8.0
|
image: mhart/alpine-node:6.8.0
|
||||||
commands:
|
commands:
|
||||||
@@ -169,6 +176,7 @@ matrix:
|
|||||||
- TESTS: php5.6
|
- TESTS: php5.6
|
||||||
- TESTS: php7.0
|
- TESTS: php7.0
|
||||||
- TESTS: php7.1
|
- TESTS: php7.1
|
||||||
|
- TESTS: eslint
|
||||||
- TESTS: jsbuild
|
- TESTS: jsbuild
|
||||||
- TESTS: integration
|
- TESTS: integration
|
||||||
|
|
||||||
|
|||||||
1
Makefile
1
Makefile
@@ -62,6 +62,7 @@ appstore: clean-build build
|
|||||||
--exclude="../$(app_name)/protractor\.*" \
|
--exclude="../$(app_name)/protractor\.*" \
|
||||||
--exclude="../$(app_name)/.*" \
|
--exclude="../$(app_name)/.*" \
|
||||||
--exclude="../$(app_name)/*.lock" \
|
--exclude="../$(app_name)/*.lock" \
|
||||||
|
--exclude="../$(app_name)/run-eslint.sh" \
|
||||||
--exclude="../$(app_name)/js/.*" \
|
--exclude="../$(app_name)/js/.*" \
|
||||||
--exclude="../$(app_name)/vendor" \
|
--exclude="../$(app_name)/vendor" \
|
||||||
--exclude-vcs \
|
--exclude-vcs \
|
||||||
|
|||||||
11
run-eslint.sh
Normal file
11
run-eslint.sh
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
set -e
|
||||||
|
|
||||||
|
ESLINT=$(which eslint || true)
|
||||||
|
if [ -z "$ESLINT" ]; then
|
||||||
|
echo "Can't find command \"eslint\" in $PATH"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo Checking scripts with $ESLINT ...
|
||||||
|
find -name "*.js" -print0 | xargs -0 $ESLINT
|
||||||
Reference in New Issue
Block a user