Repository navigation
Expand file tree
/
Copy pathazure-pipeline.pre-release.yml
More file actions
145 lines (121 loc) · 3.88 KB
/
Copy pathazure-pipeline.pre-release.yml
File metadata and controls
145 lines (121 loc) · 3.88 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
# Run on a schedule
trigger: none
pr: none
schedules:
- cron: '0 10 * * 1-5' # 10AM UTC (2AM PDT) MON-FRI (VS Code Pre-release builds at 9PM PDT)
displayName: Nightly Pre-Release Schedule
always: false # only run if there are source code changes
branches:
include:
- main
resources:
repositories:
- repository: templates
type: github
name: microsoft/vscode-engineering
ref: main
endpoint: Monaco
- repository: python-environment-tools
type: github
name: microsoft/python-environment-tools
ref: main
endpoint: Monaco
parameters:
- name: publishExtension
displayName: 🚀 Publish Extension
type: boolean
default: false
extends:
template: azure-pipelines/extension/pre-release.yml@templates
parameters:
publishExtension: ${{ parameters.publishExtension }}
ghCreateTag: false
standardizedVersioning: true
l10nSourcePaths: ./src/client
sourceRepositoriesToScan:
include:
- repository: python-environment-tools
exclude:
- repository: translations
buildPlatforms:
- name: Linux
vsceTarget: 'web'
- name: Linux
packageArch: arm64
vsceTarget: linux-arm64
- name: Linux
packageArch: arm
vsceTarget: linux-armhf
- name: Linux
packageArch: x64
vsceTarget: linux-x64
- name: Linux
packageArch: arm64
vsceTarget: alpine-arm64
- name: Linux
packageArch: x64
vsceTarget: alpine-x64
- name: MacOS
packageArch: arm64
vsceTarget: darwin-arm64
- name: MacOS
packageArch: x64
vsceTarget: darwin-x64
- name: Windows
packageArch: arm
vsceTarget: win32-arm64
- name: Windows
packageArch: x64
vsceTarget: win32-x64
buildSteps:
- checkout: self
displayName: Checkout Python Extension
path: ./s
- task: NodeTool@0
inputs:
versionSpec: '18.17.1'
displayName: Select Node version
- task: UsePythonVersion@0
inputs:
versionSpec: '3.8'
addToPath: true
architecture: 'x64'
displayName: Select Python version
- script: python -m pip install -U pip
displayName: Upgrade pip
- script: python -m pip install wheel nox
displayName: Install wheel and nox
- script: npm ci
displayName: Install NPM dependencies
- script: nox --session install_python_libs
displayName: Install Jedi, get-pip, etc
# - script: python ./build/update_ext_version.py --for-publishing
# displayName: Update build number
- script: python ./build/update_package_file.py
displayName: Update telemetry in package.json
- script: npm run addExtensionPackDependencies
displayName: Update optional extension dependencies
- script: npx gulp prePublishBundle
displayName: Build
- checkout: python-environment-tools
displayName: Checkout python-environment-tools
path: ./s/python-env-tools
- script: nox --session azure_pet_build_before
displayName: Enable cargo config for azure
- template: azure-pipelines/extension/templates/steps/build-extension-rust-package.yml@templates
parameters:
vsceTarget: $(vsceTarget)
binaryName: pet
signing: true
workingDirectory: $(Build.SourcesDirectory)/python-env-tools
buildWasm: false
runTest: false
- script: nox --session azure_pet_build_after
displayName: Move bin to final location
- script: python -c "import shutil; shutil.rmtree('.nox', ignore_errors=True)"
displayName: Clean up Nox
tsa:
config:
areaPath: 'Visual Studio Code Python Extensions'
serviceTreeID: '6e6194bc-7baa-4486-86d0-9f5419626d46'
enabled: true