73 lines
1.7 KiB
YAML
73 lines
1.7 KiB
YAML
jobs:
|
|
- job: BuildMacOS
|
|
pool:
|
|
vmImage: 'macOS 10.14'
|
|
|
|
timeoutInMinutes: 360
|
|
|
|
steps:
|
|
- task: DownloadSecureFile@1
|
|
inputs:
|
|
secureFile: s3cfg
|
|
- script: ci/azure/macos_script
|
|
name: main
|
|
displayName: 'Build and test'
|
|
- job: BuildLinux
|
|
pool:
|
|
vmImage: 'ubuntu-18.04'
|
|
|
|
timeoutInMinutes: 360
|
|
|
|
steps:
|
|
- task: DownloadSecureFile@1
|
|
inputs:
|
|
secureFile: s3cfg
|
|
- script: ci/azure/linux_script
|
|
name: main
|
|
displayName: 'Build and test'
|
|
- job: BuildWindows
|
|
pool:
|
|
vmImage: 'windows-2019'
|
|
strategy:
|
|
matrix:
|
|
mingw64:
|
|
CHERE_INVOKING: yes
|
|
MSYSTEM: MINGW64
|
|
SCRIPT: '%CD:~0,2%\msys64\usr\bin\bash -lc "bash ci/azure/windows_mingw_script"'
|
|
msvc:
|
|
SCRIPT: ci/azure/windows_msvc_script.bat
|
|
|
|
timeoutInMinutes: 360
|
|
|
|
steps:
|
|
- script: |
|
|
git clone https://github.com/msys2/msys2-ci-base.git %CD:~0,2%\msys64
|
|
%CD:~0,2%\msys64\usr\bin\rm -rf %CD:~0,2%\msys64\.git
|
|
set PATH=%CD:~0,2%\msys64\usr\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem
|
|
%CD:~0,2%\msys64\usr\bin\pacman --noconfirm -Syyuu
|
|
displayName: Install and Update MSYS2
|
|
- task: DownloadSecureFile@1
|
|
inputs:
|
|
secureFile: s3cfg
|
|
- script: $(SCRIPT)
|
|
name: main
|
|
displayName: 'Build and test'
|
|
- job: OnMasterSuccess
|
|
dependsOn:
|
|
- BuildMacOS
|
|
- BuildLinux
|
|
- BuildWindows
|
|
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
|
|
strategy:
|
|
maxParallel: 1
|
|
pool:
|
|
vmImage: 'ubuntu-18.04'
|
|
variables:
|
|
version: $[ dependencies.BuildLinux.outputs['main.version'] ]
|
|
steps:
|
|
- task: DownloadSecureFile@1
|
|
inputs:
|
|
secureFile: oauth_token
|
|
- script: ci/azure/on_master_success
|
|
displayName: 'master branch success hook'
|