Skip to content

Commit

Permalink
Merge pull request #103 from DiamondLightSource/azure-pipelines
Browse files Browse the repository at this point in the history
Set up CI with Azure Pipelines
  • Loading branch information
KarlLevik authored Aug 3, 2021
2 parents e37bdf7 + ec8424b commit 724b6fc
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Build Status](https://travis-ci.org/DiamondLightSource/gda-ispyb-api.svg?branch=master)](https://travis-ci.org/DiamondLightSource/gda-ispyb-api)
[![Build Status](https://dev.azure.com/diamond-lims/gda-ispyb-api/_apis/build/status/DiamondLightSource.gda-ispyb-api?branchName=master)](https://dev.azure.com/diamond-lims/gda-ispyb-api/_build/latest?definitionId=1&branchName=master)

# GDA ISPyB API

Expand Down
47 changes: 47 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# 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

variables: # pipeline-level
MYSQL_ROOT_PASSWORD: mysql_root_pwd

trigger:
- master

resources:
containers:
- container: mariadb
image: mariadb:10.5
env:
MYSQL_DATABASE: ispybtest
MYSQL_ROOT_PASSWORD: $(MYSQL_ROOT_PASSWORD)
ports:
- 3306:3306

pool:
vmImage: ubuntu-20.04

stages:
- stage: build
displayName: Build
dependsOn:
jobs:
- job: build
displayName: build package
pool:
vmImage: ubuntu-20.04
services:
db: mariadb
steps:
- task: Maven@3
inputs:
mavenPomFile: 'pom.xml'
mavenOptions: '-Xmx3072m'
options: '-Dispyb.url="jdbc:mariadb://127.0.0.1:3306" -Dispyb.user=root -Dispyb.pw="$(MYSQL_ROOT_PASSWORD)" -Dispyb.host=127.0.0.1'
javaHomeOption: 'JDKVersion'
jdkVersionOption: '1.8'
jdkArchitectureOption: 'x64'
publishJUnitResults: true
testResultsFiles: '**/surefire-reports/TEST-*.xml'
goals: 'package'

0 comments on commit 724b6fc

Please sign in to comment.