wacc_37/.gitlab-ci.yml

43 lines
784 B
YAML

stages:
- check
- compile
- test
default:
image: gumjoe/wacc-ci-scala:slim
check_format:
stage: check
needs: []
before_script:
- cs install scalafmt
script:
- scalafmt --check . || echo "Run 'scala format' to fix formatting issues."
check_commits:
stage: check
needs: []
image: node:lts-alpine
before_script:
- apk add git
- npm install -g @commitlint/cli @commitlint/config-conventional
- git pull origin master
script:
- npx commitlint --from origin/master --to HEAD --verbose
compile_jvm:
stage: compile
needs: []
script:
- scala compile --platform jvm -Werror .
artifacts:
paths:
- .bsp/
- .scala-build/
test_jvm:
stage: test
needs: [ compile_jvm ]
script:
- scala test --platform jvm .