Skip to content

Commit 3e99ea1

Browse files
authored
Improve PR validation Azure DevOps pipeline process. (#4775)
* Move old PR + CI definition into CI-only file. - Make way for the new PR validation build def - Update triggers to only be for CI - Now documented more completely. - simplified steps to run, and adding new steps should be straightforward. - Removed tests from PR validation to speed it up (Windows system tests are really the big ones) - Fix some unit tests
1 parent 086dd85 commit 3e99ea1

File tree

6 files changed

+546
-100
lines changed

6 files changed

+546
-100
lines changed

build/ci/vscode-python-ci.yaml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# CI definition only
2+
pr: none
3+
4+
# CI build for merges to master and release.
5+
# Note: We are 'batching' builds at the moment. This will mean only one CI build
6+
# will be triggered. If we find the resources available, turn off batching
7+
# as it is nicer to have feedback on each and every merge.
8+
trigger:
9+
batch: true
10+
branches:
11+
include: [ 'master', 'release' ] # branches that will trigger a CI build
12+
paths:
13+
exclude: [ '/news', '/.vscode' ] # file paths which will not trigger a build
14+
15+
jobs:
16+
17+
- template: templates/compile-and-validate.yml
18+
parameters:
19+
name: 'Prebuild'
20+
pool:
21+
name: 'Hosted Ubuntu 1604'
22+
UploadBinary: true
23+
Platform: 'Linux'
24+
25+
26+
- template: templates/virtual_env_tests.yml
27+
parameters:
28+
Platform: 'Windows'
29+
pool:
30+
name: 'Hosted VS2017'
31+
32+
- template: templates/virtual_env_tests.yml
33+
parameters:
34+
Platform: 'Linux'
35+
EnvironmentExecutableFolder: 'bin'
36+
pool:
37+
name: 'Hosted Ubuntu 1604'
38+
39+
- template: templates/virtual_env_tests.yml
40+
parameters:
41+
Platform: 'macOS'
42+
EnvironmentExecutableFolder: 'bin'
43+
pool:
44+
name: 'Hosted macOS'
45+
46+
- template: templates/test-phase-job.yml
47+
parameters:
48+
pool:
49+
name: 'Hosted VS2017'
50+
Platform: 'Windows'
51+
52+
- template: templates/test-phase-job.yml
53+
parameters:
54+
pool:
55+
name: 'Hosted Ubuntu 1604'
56+
Platform: 'Linux'
57+
58+
- template: templates/test-phase-job.yml
59+
parameters:
60+
pool:
61+
name: 'Hosted macOS'
62+
Platform: 'macOS'
63+

0 commit comments

Comments
 (0)