-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
123 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
# This YAML runs the daily test and upload builds on the master branch | ||
|
||
trigger: | ||
- master | ||
|
||
### Test on latest Windows and .Net version | ||
|
||
jobs: | ||
- job: WindowsBuild | ||
displayName: 'Build on Windows (sln)' | ||
pool: | ||
vmImage: 'windows-latest' | ||
|
||
variables: | ||
solution: 'OpenBVE.sln' | ||
buildPlatform: 'Any CPU' | ||
buildConfiguration: 'Release' | ||
|
||
steps: | ||
- task: NuGetToolInstaller@1 | ||
|
||
- task: NuGetCommand@2 | ||
inputs: | ||
restoreSolution: '$(solution)' | ||
|
||
- task: VSBuild@1 | ||
inputs: | ||
solution: '$(solution)' | ||
platform: '$(buildPlatform)' | ||
configuration: '$(buildConfiguration)' | ||
|
||
### Build and upload via makefile on OS-X | ||
### This uses Mono 6.8.0 as the default version isn't high enough on this image | ||
### As we're 32-bit only at present 10.15+ is no good to us | ||
|
||
- job: AppleMakeBuild | ||
displayName: 'Build on Apple OS-X (makefile)' | ||
pool: | ||
vmImage: 'macos-10.14' | ||
|
||
variables: | ||
solution: 'OpenBVE.sln' | ||
buildPlatform: 'Any CPU' | ||
buildConfiguration: 'Release' | ||
|
||
steps: | ||
- task: NuGetToolInstaller@1 | ||
### Default Mono version isn't high enough on this OS-X image so kick to the latest | ||
- script: sudo $AGENT_HOMEDIRECTORY/scripts/select-xamarin-sdk.sh 6_8_0 | ||
- script: make publish | ||
- task: CopyFilesOverSSH@0 | ||
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master')) | ||
inputs: | ||
sshEndpoint: 'BuildServer' | ||
sourceFolder: $(Pipeline.Workspace)/s/ | ||
contents: /*.dmg | ||
targetFolder: '/var/www/vps.bvecornwall.co.uk/public/OpenBVE/Builds/' | ||
overwrite: true | ||
readyTimeout: 20000 | ||
|
||
### Linux makefile build | ||
### This runs on the latest Mono version installed | ||
|
||
- job: LinuxMakeBuild | ||
displayName: 'Build on Linux (makefile)' | ||
pool: | ||
vmImage: 'ubuntu-16.04' | ||
|
||
variables: | ||
solution: 'OpenBVE.sln' | ||
buildPlatform: 'Any CPU' | ||
buildConfiguration: 'Release' | ||
|
||
steps: | ||
- task: NuGetToolInstaller@1 | ||
- script: make publish | ||
- task: CopyFilesOverSSH@0 | ||
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master')) | ||
inputs: | ||
sshEndpoint: 'BuildServer' | ||
sourceFolder: $(Pipeline.Workspace)/s/ | ||
contents: /*.zip | ||
targetFolder: '/var/www/vps.bvecornwall.co.uk/public/OpenBVE/Builds/' | ||
overwrite: true | ||
readyTimeout: 20000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters