2018-12-27 22:58:46 +00:00
|
|
|
trigger:
|
|
|
|
- master
|
2019-03-03 19:15:26 +00:00
|
|
|
- release/*
|
2018-12-26 18:36:16 +00:00
|
|
|
pr:
|
|
|
|
- master
|
2019-03-03 19:15:26 +00:00
|
|
|
- release/*
|
2018-12-26 18:36:16 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
- job: windows
|
|
|
|
displayName: 'Windows'
|
|
|
|
pool:
|
|
|
|
vmImage: 'VS2017-Win2016'
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
Win32:
|
2019-04-07 10:01:32 +00:00
|
|
|
BuildArch: 'Win32'
|
|
|
|
VcpkgTargetTriplet: 'x86-windows-static'
|
2018-12-26 18:36:16 +00:00
|
|
|
Win64:
|
2019-04-07 10:01:32 +00:00
|
|
|
BuildArch: 'x64'
|
|
|
|
VcpkgTargetTriplet: 'x64-windows-static'
|
2018-12-26 18:36:16 +00:00
|
|
|
|
|
|
|
steps:
|
2019-01-05 19:11:29 +00:00
|
|
|
- template: azure-pipelines/templates/ci-git-rebase.yml
|
|
|
|
- template: azure-pipelines/templates/windows-dependencies.yml
|
|
|
|
- template: azure-pipelines/templates/ci-opengfx.yml
|
2019-04-07 10:01:32 +00:00
|
|
|
parameters:
|
|
|
|
SharedFolder: C:/Users/Public/Documents/OpenTTD
|
2019-01-05 19:11:29 +00:00
|
|
|
- template: azure-pipelines/templates/windows-build.yml
|
|
|
|
parameters:
|
2019-04-07 10:01:32 +00:00
|
|
|
BuildArch: $(BuildArch)
|
|
|
|
VcpkgTargetTriplet: $(VcpkgTargetTriplet)
|
|
|
|
BuildConfiguration: 'Debug'
|
|
|
|
- task: VSBuild@1
|
|
|
|
displayName: 'Prepare regression files'
|
|
|
|
inputs:
|
|
|
|
solution: build/regression_files.vcxproj
|
|
|
|
configuration: 'Debug'
|
|
|
|
- task: VSBuild@1
|
2018-12-31 16:25:08 +00:00
|
|
|
displayName: 'Test'
|
2019-04-07 10:01:32 +00:00
|
|
|
inputs:
|
|
|
|
solution: build/RUN_TESTS.vcxproj
|
|
|
|
configuration: 'Debug'
|
|
|
|
|
2018-12-26 18:36:16 +00:00
|
|
|
|
|
|
|
- job: linux
|
|
|
|
displayName: 'Linux'
|
|
|
|
pool:
|
|
|
|
vmImage: 'ubuntu-16.04'
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2019-06-29 20:50:38 +00:00
|
|
|
linux-amd64-clang-3.9:
|
|
|
|
Tag: 'linux-amd64-clang-3.9'
|
2019-05-02 20:17:09 +00:00
|
|
|
linux-amd64-gcc-6:
|
|
|
|
Tag: 'linux-amd64-gcc-6'
|
|
|
|
linux-i386-gcc-6:
|
|
|
|
Tag: 'linux-i386-gcc-6'
|
2018-12-26 18:36:16 +00:00
|
|
|
|
|
|
|
steps:
|
2019-01-05 19:11:29 +00:00
|
|
|
- template: azure-pipelines/templates/ci-git-rebase.yml
|
|
|
|
# The dockers already have the dependencies installed
|
2019-04-07 10:01:32 +00:00
|
|
|
- template: azure-pipelines/templates/ci-opengfx.yml
|
|
|
|
parameters:
|
|
|
|
SharedFolder: /usr/local/share/games/openttd
|
|
|
|
PrefixCommand: sudo
|
2019-01-05 19:11:29 +00:00
|
|
|
- template: azure-pipelines/templates/linux-build.yml
|
|
|
|
parameters:
|
|
|
|
Image: compile-farm-ci
|
2019-05-02 20:17:09 +00:00
|
|
|
Tag: $(Tag)
|
2018-12-26 18:36:16 +00:00
|
|
|
|
|
|
|
- job: macos
|
|
|
|
displayName: 'MacOS'
|
|
|
|
pool:
|
2020-02-29 11:21:30 +00:00
|
|
|
vmImage: 'macOS-10.14'
|
2018-12-26 18:36:16 +00:00
|
|
|
|
2019-02-24 20:34:37 +00:00
|
|
|
variables:
|
|
|
|
MACOSX_DEPLOYMENT_TARGET: 10.9
|
|
|
|
|
2018-12-26 18:36:16 +00:00
|
|
|
steps:
|
2019-01-05 19:11:29 +00:00
|
|
|
- template: azure-pipelines/templates/ci-git-rebase.yml
|
|
|
|
- template: azure-pipelines/templates/osx-dependencies.yml
|
|
|
|
- template: azure-pipelines/templates/ci-opengfx.yml
|
2019-04-07 10:01:32 +00:00
|
|
|
parameters:
|
|
|
|
SharedFolder: /Library/Application Support/OpenTTD
|
|
|
|
PrefixCommand: sudo
|
2019-01-05 19:11:29 +00:00
|
|
|
- template: azure-pipelines/templates/osx-build.yml
|
2019-04-07 10:01:32 +00:00
|
|
|
- script: |
|
|
|
|
set -ex
|
|
|
|
|
|
|
|
cd build
|
|
|
|
CTEST_OUTPUT_ON_FAILURE=1 make test
|
2018-12-26 18:36:16 +00:00
|
|
|
displayName: 'Test'
|