-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
65 lines (63 loc) · 1.73 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
jobs:
- job: linux
pool:
vmImage: 'ubuntu-16.04'
steps:
- script: make test
- task: CopyFiles@2
inputs:
targetFolder: '$(Build.ArtifactStagingDirectory)'
contents: 'prettysharp'
- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: '$(Build.ArtifactStagingDirectory)'
artifactName: 'ubuntu-binary-and-tarball'
- job: macos
pool:
vmImage: 'macos-10.13'
steps:
- script: make test
- task: CopyFiles@2
inputs:
targetFolder: '$(Build.ArtifactStagingDirectory)'
contents: 'prettysharp'
- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: '$(Build.ArtifactStagingDirectory)'
artifactName: 'macos-binary'
- job: windows
pool:
vmImage: 'vs2017-win2016'
steps:
- script: build.bat
displayName: Build
- task: UsePythonVersion@0
inputs:
versionSpec: '3.x'
addToPath: true
architecture: 'x64'
- script: python.exe --version
displayName: Verify Python Version
- script: python.exe test.py
displayName: Test
- script: make prettysharp.msi
- task: ArchiveFiles@2
inputs:
rootFolderOrFile: 'prettysharp.exe'
archiveType: 'zip'
archiveFile: '$(Build.ArtifactStagingDirectory)/prettysharp-0.9.2-win.zip'
replaceExistingArchive: true
- task: ArchiveFiles@2
inputs:
rootFolderOrFile: 'LICENSE'
archiveType: 'zip'
archiveFile: '$(Build.ArtifactStagingDirectory)/prettysharp-0.9.2-win.zip'
replaceExistingArchive: false
- task: CopyFiles@2
inputs:
targetFolder: '$(Build.ArtifactStagingDirectory)'
contents: 'prettysharp.msi'
- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: '$(Build.ArtifactStagingDirectory)'
artifactName: 'windows-binaries'