diff --git a/README.md b/README.md index f88d52f73..e1bb8ba00 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,7 @@ + +[![Build Status](https://dev.azure.com/hoffjp12/first_project/_apis/build/status/hoffjp.pipelines-java?branchName=master)](https://dev.azure.com/hoffjp12/first_project/_build/latest?definitionId=1&branchName=master) + # Contributing This project welcomes contributions and suggestions. Most contributions require you to agree to a diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 000000000..03897a827 --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,22 @@ +# Maven +# Build your Java project and run tests with Apache Maven. +# Add steps that analyze code, save build artifacts, deploy, and more: +# https://docs.microsoft.com/azure/devops/pipelines/languages/java + +trigger: +- master + +pool: + vmImage: 'ubuntu-latest' + +steps: +- task: Maven@3 + inputs: + mavenPomFile: 'pom.xml' + mavenOptions: '-Xmx3072m' + javaHomeOption: 'JDKVersion' + jdkVersionOption: '1.8' + jdkArchitectureOption: 'x64' + publishJUnitResults: true + testResultsFiles: '**/surefire-reports/TEST-*.xml' + goals: 'package'