25 lines
767 B
YAML
25 lines
767 B
YAML
|
# Template maven-build
|
||
|
|
||
|
# This template allows you to test and build your Java project with Maven.
|
||
|
# The workflow allows running tests, code checkstyle and security scans on the default branch.
|
||
|
|
||
|
# Prerequisites: pom.xml and appropriate project structure should exist in the repository.
|
||
|
|
||
|
image: maven:3.6.3
|
||
|
|
||
|
pipelines:
|
||
|
default:
|
||
|
- parallel:
|
||
|
- step:
|
||
|
name: Run Webtests
|
||
|
caches:
|
||
|
- maven
|
||
|
script:
|
||
|
- mvn -B verify --file pom.xml
|
||
|
- mvn compiler:compile
|
||
|
- mvn compiler:testCompile
|
||
|
- mvn surefire:test
|
||
|
after-script:
|
||
|
# Collect checkstyle results, if any, and convert to Bitbucket Code Insights.
|
||
|
- pipe: atlassian/checkstyle-report:0.3.0
|
||
|
|