Add eslint drone test

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2017-11-11 12:12:32 +01:00
committed by Julius Härtl
parent a2adcf2487
commit f8f755f31e
3 changed files with 20 additions and 0 deletions

View File

@@ -150,6 +150,13 @@ pipeline:
when:
matrix:
TESTS: integration
eslint:
image: nextcloudci/eslint:eslint-1
commands:
- ./run-eslint.sh
when:
matrix:
TESTS: eslint
jsbuild:
image: mhart/alpine-node:6.8.0
commands:
@@ -169,6 +176,7 @@ matrix:
- TESTS: php5.6
- TESTS: php7.0
- TESTS: php7.1
- TESTS: eslint
- TESTS: jsbuild
- TESTS: integration

View File

@@ -62,6 +62,7 @@ appstore: clean-build build
--exclude="../$(app_name)/protractor\.*" \
--exclude="../$(app_name)/.*" \
--exclude="../$(app_name)/*.lock" \
--exclude="../$(app_name)/run-eslint.sh" \
--exclude="../$(app_name)/js/.*" \
--exclude="../$(app_name)/vendor" \
--exclude-vcs \

11
run-eslint.sh Normal file
View 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