Debian Codegraph @

tests/pipeline_scripts/python_linux.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 - task: ArchiveFiles@2
21 displayName: 'Archive files'
22 inputs:
23 rootFolderOrFile: '$(System.DefaultWorkingDirectory)'
24 includeRootFolder: false
25 archiveFile: '$(System.DefaultWorkingDirectory)/build$(Build.BuildId).zip'
26 - task: PublishBuildArtifacts@1
27 inputs:
28 PathtoPublish: '$(System.DefaultWorkingDirectory)/build$(Build.BuildId).zip'
29 name: 'drop'