Debian Codegraph @

tests/pipeline_scripts/python_linux_pip.yml

raw
1 # --------------------------------------------------------------------------------------------
2 # Copyright (c) Microsoft Corporation. All rights reserved.
3 # Licensed under the MIT License. See License.txt in the project root for license information.
4 # --------------------------------------------------------------------------------------------
5 # Starter template for Azure functions build -- python on linux
6 trigger:
7 - master
8 pool:
9 vmImage: 'ubuntu-16.04'
10 steps:
11 - task: UsePythonVersion@0
12 displayName: "Setting python version to 3.6 as required by functions"
13 inputs:
14 versionSpec: '3.6'
15 architecture: 'x64'
16 - script: |
17 python3.6 -m venv worker_venv
18 source worker_venv/bin/activate
19 pip3.6 install setuptools
20 pip3.6 install -r requirements.txt
21 - task: ArchiveFiles@2
22 displayName: 'Archive files'
23 inputs:
24 rootFolderOrFile: '$(System.DefaultWorkingDirectory)'
25 includeRootFolder: false
26 archiveFile: '$(System.DefaultWorkingDirectory)/build$(Build.BuildId).zip'
27 - task: PublishBuildArtifacts@1
28 inputs:
29 PathtoPublish: '$(System.DefaultWorkingDirectory)/build$(Build.BuildId).zip'
30 name: 'drop'