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
10 changes: 8 additions & 2 deletions builds/azure-pipelines/template-steps-build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,22 @@ steps:
result: PoliCheck.xml
condition: and(succeeded(), eq(variables['Agent.OS'], 'Windows_NT'))

# Use 18.15 directly due to https://github.com/Azure/azure-functions-core-tools/issues/3335
- task: NodeTool@0
inputs:
versionSpec: '18.15'

- script: npm install -g azure-functions-core-tools
displayName: 'Install Azure Functions Core Tools'

- script: npm install -g azurite
displayName: 'Install Azurite Local Storage Emulator'

# This step is necessary because npm installs to a non-traditional location on Windows hosted agents
# For non-Windows agents we still want to ensure that we always get the correct location where the tools are installed
# This sets the path to npm global installations as a variable which then gets passed to .NET test task
- bash: echo "##vso[task.setvariable variable=nodeModulesPath]$(npm root -g)"
displayName: 'Set npm installation path for Windows'
condition: and(succeeded(), eq(variables['Agent.OS'], 'Windows_NT'))
displayName: 'Set npm installation path'

- bash: echo "##vso[task.setvariable variable=azureFunctionsExtensionBundlePath]$(func GetExtensionBundlePath)"
displayName: 'Set Azure Functions extension bundle path'
Expand Down Expand Up @@ -205,6 +210,7 @@ steps:
displayName: '.NET Test on Linux (both unit and integration tests)'
env:
SA_PASSWORD: '$(serverPassword)'
NODE_MODULES_PATH: '$(nodeModulesPath)'
AZUREFUNCTIONS_SQLBINDINGS_TELEMETRY_OPTOUT: '1'
inputs:
command: test
Expand Down
11 changes: 8 additions & 3 deletions builds/azure-pipelines/template-steps-performance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,22 @@ steps:
inputs:
useGlobalJson: true

# Use 18.15 directly due to https://github.com/Azure/azure-functions-core-tools/issues/3335
- task: NodeTool@0
inputs:
versionSpec: '18.15'

- script: npm install -g azure-functions-core-tools
displayName: 'Install Azure Functions Core Tools'

- script: npm install -g azurite
displayName: 'Install Azurite Local Storage Emulator'

# This step is necessary because npm installs to a non-traditional location on Windows hosted agents
# This sets the path to npm global installations as a variable which then gets passed to the .NET run task
# For non-Windows agents we still want to ensure that we always get the correct location where the tools are installed
# This sets the path to npm global installations as a variable which then gets passed to .NET test task
- bash: echo "##vso[task.setvariable variable=nodeModulesPath]$(npm root -g)"
displayName: 'Set npm installation path for Windows'
condition: and(succeeded(), eq(variables['Agent.OS'], 'Windows_NT'))
displayName: 'Set npm installation path'

- task: DockerInstaller@0
displayName: Docker Installer
Expand Down
2 changes: 1 addition & 1 deletion docs/SetupGuide_Java.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ These instructions will guide you through creating your Function Project and add
<dependency>
<groupId>com.microsoft.azure.functions</groupId>
<artifactId>azure-functions-java-library-sql</artifactId>
<version>[0.1.1,)</version>
<version>[1.0.0,)</version>
</dependency>
```

Expand Down