This is the codeAbility Sharing Platform! Learn more about the codeAbility Sharing Platform.

Skip to content
Snippets Groups Projects
Commit 1fba4bac authored by Daniel Rainer's avatar Daniel Rainer
Browse files

Add eslint job

parent 7777a6f3
2 merge requests!188Merging Peer Reviewing et. al to Master,!164211 peer reviewing functionality
......@@ -5,7 +5,7 @@ cache:
paths:
- .maven/
stages:
- check
- lint
- build
- test
- analyze
......@@ -17,11 +17,20 @@ before_script:
- export MAVEN_USER_HOME=`pwd`/.maven
checkstyle:
stage: check
stage: lint
script:
- ./mvnw -ntp checkstyle:check -Dmaven.repo.local=$MAVEN_USER_HOME
needs: []
eslint:
stage: lint
script:
- npm install
# eslint exits 0 on warnings, this is a workaround to exit 1 when warnings are present.
- "! npm run lint | grep -qE '✖ [0-9]+ problem'"
allow_failure: true
needs: []
maven-compile:
stage: build
script:
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment