blob: 5ec4522796cea90439b41dedab32b936ccce05fc [file] [log] [blame]
Steve Dowere5f41d22018-05-16 17:50:29 -04001# Current docs for the syntax of this file are at:
2# https://github.com/Microsoft/vsts-agent/blob/master/docs/preview/yamlgettingstarted.md
3
4name: $(BuildDefinitionName)_$(Date:yyyyMMdd)$(Rev:.rr)
5
6queue:
7 name: Hosted VS2017
8 parallel: 2
9 matrix:
10 amd64:
11 buildOpt: -p x64
12 outDirSuffix: amd64
13 win32:
14 buildOpt:
15 outDirSuffix: win32
16
17trigger:
18 branches:
19 include:
20 - master
21 - 3.7
22 - 3.6
23 paths:
24 exclude:
25 - Doc/*
26 - Tools/*
27
28variables:
29 # Relocate build outputs outside of source directory to make cleaning faster
30 Py_IntDir: $(Build.BinariesDirectory)\obj
31 # UNDONE: Do not build to a different directory because of broken tests
32 Py_OutDir: $(Build.SourcesDirectory)\PCbuild
33 EXTERNAL_DIR: $(Build.BinariesDirectory)\externals
34
35steps:
36- checkout: self
37 clean: true
38 fetchDepth: 5
39
40- script: PCbuild\build.bat -e $(buildOpt)
41 displayName: 'Build CPython'
42
43- script: python.bat -m test.pythoninfo
44 displayName: 'Display build info'
45
46- script: PCbuild\rt.bat -q -uall -u-cpu -rwW --slowest --timeout=1200 -j0
47 displayName: 'Tests'
48 env:
49 PREFIX: $(Py_OutDir)\$(outDirSuffix)