Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 40 additions & 24 deletions builds/azure-pipelines/build-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,41 +9,57 @@ pr:
variables:
solution: '**/*.sln'
configuration: 'Debug'
nugetVersion: '99.99.99-test'
binariesVersion: '99.99.99'
oopWorkerSupportedExtensionVersion: '99.99.99-test'

stages:
- stage: Build
displayName: 'PR Validation'

jobs:
- job: BuildTest
displayName: 'Build and Test on'

# Verifies cross-platform build and test
strategy:
matrix:
mac:
imageName: 'macos-latest'
testServer: ''
windows:
imageName: 'windows-latest'
testServer: '(LocalDb)\MSSQLLocalDB'
linux:
imageName: 'ubuntu-latest'
testServer: ''

- job: Mac
timeoutInMinutes: 90
pool:
vmImage: '$(imageName)'

vmImage: macos-latest
workspace:
clean: all
steps:
- template: 'template-steps-build-test.yml'
parameters:
solution: '$(solution)'
configuration: '$(configuration)'
testServer: 'localhost'
nugetVersion: '$(nugetVersion)'
binariesVersion: '$(binariesVersion)'
oopWorkerSupportedExtensionVersion: '$(oopWorkerSupportedExtensionVersion)'
- job: Linux
timeoutInMinutes: 90
pool:
vmImage: ubuntu-latest
workspace:
clean: all
steps:
- template: 'template-steps-build-test.yml'
parameters:
solution: '$(solution)'
configuration: '$(configuration)'
testServer: 'localhost'
nugetVersion: '$(nugetVersion)'
binariesVersion: '$(binariesVersion)'
oopWorkerSupportedExtensionVersion: '$(oopWorkerSupportedExtensionVersion)'
- job: Windows
timeoutInMinutes: 90
pool:
vmImage: windows-latest
workspace:
clean: all

timeoutInMinutes: '90'

steps:
- template: 'template-steps-build-test.yml'
parameters:
solution: '$(solution)'
configuration: '$(configuration)'
nugetVersion: '99.99.99-test'
binariesVersion: '99.99.99'
oopWorkerSupportedExtensionVersion: '99.99.99-test'
testServer: '(LocalDb)\MSSQLLocalDB'
nugetVersion: '$(nugetVersion)'
binariesVersion: '$(binariesVersion)'
oopWorkerSupportedExtensionVersion: '$(oopWorkerSupportedExtensionVersion)'
6 changes: 3 additions & 3 deletions builds/azure-pipelines/template-steps-build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ steps:
- task: DotNetCoreCLI@2
displayName: '.NET Test on Mac (unit tests only)'
env:
TEST_SERVER: '$(testServer)'
TEST_SERVER: ${{ parameters.testServer }}
NODE_MODULES_PATH: '$(nodeModulesPath)'
AZUREFUNCTIONS_SQLBINDINGS_TELEMETRY_OPTOUT: '1'
inputs:
Expand All @@ -158,7 +158,7 @@ steps:
- task: DotNetCoreCLI@2
displayName: '.NET Test on Windows (unit tests and .NET In-Proc integration tests)'
env:
TEST_SERVER: '$(testServer)'
TEST_SERVER: ${{ parameters.testServer }}
NODE_MODULES_PATH: '$(nodeModulesPath)'
AZUREFUNCTIONS_SQLBINDINGS_TELEMETRY_OPTOUT: '1'
# Only running CSharp integration tests to get accurate code coverage numbers
Expand All @@ -174,7 +174,7 @@ steps:
- task: DotNetCoreCLI@2
displayName: '.NET Test on Windows (Non .NET In-Proc)'
env:
TEST_SERVER: '$(testServer)'
TEST_SERVER: ${{ parameters.testServer }}
NODE_MODULES_PATH: '$(nodeModulesPath)'
AZUREFUNCTIONS_SQLBINDINGS_TELEMETRY_OPTOUT: '1'
LANGUAGES_TO_TEST: 'Java,JavaScript,OutOfProc,PowerShell,Python,Csx'
Expand Down