Add test to build pipeline

This commit is contained in:
daan 2019-07-10 22:13:34 -07:00
parent 34a4de01b1
commit df8f9fc59c
1 changed files with 15 additions and 3 deletions

View File

@ -23,19 +23,31 @@ jobs:
solution: build/libmimalloc.sln solution: build/libmimalloc.sln
- upload: $(Build.SourcesDirectory)/build - upload: $(Build.SourcesDirectory)/build
artifact: windows artifact: windows
- job: - job:
displayName: Linux displayName: Linux
pool: pool:
vmImage: vmImage:
ubuntu-16.04 ubuntu-16.04
strategy:
matrix:
Debug:
CC: gcc
BuildType: Debug
Release:
CC: gcc
BuildType: Release
steps: steps:
- task: CMake@1 - task: CMake@1
inputs: inputs:
workingDirectory: 'build' workingDirectory: $(BuildType)
cmakeArgs: .. cmakeArgs: ..
- script: make -j$(nproc) -C build - script: make -j$(nproc) -C $(BuildType)
- upload: $(Build.SourcesDirectory)/build - script: ctest -C $(BuildType)
- upload: $(Build.SourcesDirectory)/$(BuildType)
artifact: ubuntu artifact: ubuntu
- job: - job:
displayName: macOS displayName: macOS
pool: pool: