Update drone for vue build
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
@@ -219,15 +219,16 @@ pipeline:
|
|||||||
eslint:
|
eslint:
|
||||||
image: nextcloudci/eslint:eslint-1
|
image: nextcloudci/eslint:eslint-1
|
||||||
commands:
|
commands:
|
||||||
- ./run-eslint.sh
|
- npm install
|
||||||
|
- npm run lint
|
||||||
when:
|
when:
|
||||||
matrix:
|
matrix:
|
||||||
TESTS: eslint
|
TESTS: eslint
|
||||||
jsbuild:
|
jsbuild:
|
||||||
image: mhart/alpine-node:6.8.0
|
image: node:11-alpine
|
||||||
commands:
|
commands:
|
||||||
- apk add --no-cache make
|
- npm install
|
||||||
- make build-js
|
- npm run build
|
||||||
when:
|
when:
|
||||||
matrix:
|
matrix:
|
||||||
TESTS: jsbuild
|
TESTS: jsbuild
|
||||||
|
|||||||
@@ -1,19 +0,0 @@
|
|||||||
#!/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" -path '*js/*' -not -path '*js/node_modules*' \
|
|
||||||
-not -path '*l10n/*' \
|
|
||||||
-not -path '*js/vendor*' \
|
|
||||||
-not -path '*js/tests*' \
|
|
||||||
-not -path '*js/webpack*' \
|
|
||||||
-not -path '*js/public*' \
|
|
||||||
-not -path '*build/*' \
|
|
||||||
-not -path '*tests/*' \
|
|
||||||
-print0 | xargs -0 $ESLINT
|
|
||||||
Reference in New Issue
Block a user