forked from 7mind/izumi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.azure-pipelines.yml
74 lines (70 loc) · 2.17 KB
/
.azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# https://aka.ms/yaml
pr:
branches:
include:
- '*'
trigger:
tags:
include:
- v*
branches:
include:
- develop
- series/*
variables:
- group: security-tokens
- name: COURSIER_CACHE
value: $(Pipeline.Workspace)/.coursier
- name: IVY_CACHE_FOLDER
value: $(Pipeline.Workspace)/.ivy2
jobs:
- template: .azure-dockerstep.yml
parameters:
jobs:
- job: build_212
displayName: 'Tests and Coverage: 2.12'
steps:
- script: |
bash sbtgen.sc --js && bash .build.sh 2.12 coverage
- task: PublishTestResults@2
- task: PublishCodeCoverageResults@1
inputs:
codeCoverageTool: 'Cobertura'
summaryFileLocation: '$(System.DefaultWorkingDirectory)/**/target/**/cobertura.xml'
- job: build_213
displayName: 'Tests and Coverage: 2.13'
steps:
- script: |
bash sbtgen.sc --js && bash .build.sh 2.13 coverage
- task: PublishTestResults@2
- task: PublishCodeCoverageResults@1
inputs:
codeCoverageTool: 'Cobertura'
summaryFileLocation: '$(System.DefaultWorkingDirectory)/**/target/**/cobertura.xml'
- job: site
dependsOn:
- build_212
- build_213
displayName: 'Publish Site'
steps:
- script: |
bash sbtgen.sc --js && bash .build.sh 2.13 secrets site
- job: publish212
displayName: 'Publish to Maven Central (2.12)'
dependsOn:
- build_212
steps:
- script: |
bash sbtgen.sc --js && bash .build.sh 2.12 secrets publishScala
- job: publish213
displayName: 'Publish to Maven Central (2.13)'
dependsOn:
- build_213
steps:
- script: |
bash sbtgen.sc --js && bash .build.sh 2.13 secrets publishScala
- job: publish3
displayName: 'Publish to Maven Central (3)'
steps:
- script: |
bash sbtgen.sc --js && bash .build.sh 3 secrets publishScala