diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000000..c2aef8b591 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,9 @@ +pipeline: + eslint: + image: nextcloudci/eslint:eslint-1 + commands: + - ./run-eslint.sh + stylelint: + image: nextcloudci/stylelint:stylelint-1 + commands: + - ./run-stylelint.sh diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 0000000000..d34a85a72e --- /dev/null +++ b/.eslintignore @@ -0,0 +1 @@ +js/simplewebrtc.js diff --git a/run-eslint.sh b/run-eslint.sh index 9b248ccc8b..50548f1079 100755 --- a/run-eslint.sh +++ b/run-eslint.sh @@ -8,4 +8,4 @@ if [ -z "$ESLINT" ]; then fi echo Checking scripts with $ESLINT ... -find -name "*.js" -not -name "simplewebrtc.js" -print0 | xargs -0 $ESLINT +find -name "*.js" -print0 | xargs -0 $ESLINT