Skip to content

Commit 34de06b

Browse files
committed
Change: Add Azure YML
1 parent 5e02135 commit 34de06b

File tree

1 file changed

+81
-0
lines changed

1 file changed

+81
-0
lines changed

azure-pipelines.yml

+81
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
# This YAML runs the daily test and upload builds on the master branch
2+
3+
trigger:
4+
- master
5+
6+
### Test on latest Windows and .Net version
7+
8+
jobs:
9+
- job: WindowsBuild
10+
displayName: 'Build on Windows (sln)'
11+
pool:
12+
vmImage: 'windows-latest'
13+
14+
variables:
15+
solution: 'OpenBVE.sln'
16+
buildPlatform: 'Any CPU'
17+
buildConfiguration: 'Release'
18+
19+
steps:
20+
- task: NuGetToolInstaller@1
21+
22+
- task: NuGetCommand@2
23+
inputs:
24+
restoreSolution: '$(solution)'
25+
26+
- task: VSBuild@1
27+
inputs:
28+
solution: '$(solution)'
29+
platform: '$(buildPlatform)'
30+
configuration: '$(buildConfiguration)'
31+
32+
### Build and upload via makefile on OS-X
33+
### This uses Mono 6.8.0 as the default version isn't high enough on this image
34+
### As we're 32-bit only at present 10.15+ is no good to us
35+
36+
- job: AppleMakeBuild
37+
displayName: 'Build on Apple OS-X (makefile)'
38+
pool:
39+
vmImage: 'macos-10.14'
40+
41+
variables:
42+
solution: 'OpenBVE.sln'
43+
buildPlatform: 'Any CPU'
44+
buildConfiguration: 'Release'
45+
46+
steps:
47+
- task: NuGetToolInstaller@1
48+
### Default Mono version isn't high enough on this OS-X image so kick to the latest
49+
- script: sudo $AGENT_HOMEDIRECTORY/scripts/select-xamarin-sdk.sh 6_8_0
50+
- script: make publish
51+
- task: CopyFilesOverSSH@0
52+
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
53+
inputs:
54+
sshEndpoint: 'BuildServer'
55+
contents: \*.dmg
56+
targetFolder: '/var/www/vps.bvecornwall.co.uk/public/OpenBVE/Builds/'
57+
overwrite: true
58+
59+
### Linux makefile build
60+
### This runs on the latest Mono version installed
61+
62+
- job: LinuxMakeBuild
63+
displayName: 'Build on Linux (makefile)'
64+
pool:
65+
vmImage: 'ubuntu-16.04'
66+
67+
variables:
68+
solution: 'OpenBVE.sln'
69+
buildPlatform: 'Any CPU'
70+
buildConfiguration: 'Release'
71+
72+
steps:
73+
- task: NuGetToolInstaller@1
74+
- script: make publish
75+
- task: CopyFilesOverSSH@0
76+
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
77+
inputs:
78+
sshEndpoint: 'BuildServer'
79+
contents: \*.zip
80+
targetFolder: '/var/www/vps.bvecornwall.co.uk/public/OpenBVE/Builds/'
81+
overwrite: true

0 commit comments

Comments
 (0)