forked from timcadman/ds-helper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
39 lines (36 loc) · 1.04 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
trigger:
- master
pr:
- master
jobs:
- job: RPipeline
pool:
vmImage: 'ubuntu-latest'
container:
image: 'rocker/verse:4.1.1'
steps:
- task: Bash@3
displayName: Prepare R-package
inputs:
filePath: .azure/prepare.bash
env:
R_LIBS_USER: '$(Agent.BuildDirectory)/R/library'
- task: Bash@3
displayName: Check R-package
condition: eq(variables['Build.Reason'], 'PullRequest')
inputs:
filePath: .azure/pullrequest.bash
env:
R_LIBS_USER: '$(Agent.BuildDirectory)/R/library'
CODECOV_TOKEN: $(CODECOV_TOKEN)
- task: Bash@3
displayName: Release R-package
condition: and(eq(variables['Build.SourceBranch'], 'refs/heads/master'), ne(variables['Build.Reason'], 'PullRequest'))
inputs:
filePath: .azure/release.bash
env:
R_LIBS_USER: '$(Agent.BuildDirectory)/R/library'
GITHUB_TOKEN: $(GITHUB_TOKEN)
NEXUS_PASS: $(NEXUS_PASS)
NEXUS_USER: $(NEXUS_USER)
REGISTRY: ${REGISTRY}