Skip to content

Commit

Permalink
Fix build pipelines (#1142)
Browse files Browse the repository at this point in the history
* Use expression for testServer

* Use runtime values

* Revert "Use runtime values"

This reverts commit 298bb31.

* Don't use matrix
  • Loading branch information
Charles-Gagnon authored Nov 5, 2024
1 parent fd05485 commit d253cb0
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 27 deletions.
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

0 comments on commit d253cb0

Please sign in to comment.