Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
89 commits
Select commit Hold shift + click to select a range
e483676
Adds VSTS build definition for Windows
zooba Apr 30, 2018
16c234b
Improves TEMP directory selection and fixes tests
zooba Apr 30, 2018
d156b8a
Fix typo in build definition
zooba Apr 30, 2018
32cfc0b
Enables running rt.bat with any PREFIX value
zooba Apr 30, 2018
4934528
Enables CI on vsts branch
zooba Apr 30, 2018
91bed3a
Disable different output directory because of broken tests
zooba Apr 30, 2018
d76f1ca
Fixes missing block
zooba Apr 30, 2018
9839cbc
Fixes pathlib test
zooba Apr 30, 2018
5c5cdcb
Adds test.support._longpath for pathlib tests
zooba Apr 30, 2018
945ffcc
Adds macOS and Linux build definitions
zooba Apr 30, 2018
fcf95d4
Add libssl install step
zooba Apr 30, 2018
406209f
Add apt-get update step
zooba Apr 30, 2018
9816888
Improve apt-get update step
zooba Apr 30, 2018
efc8c83
Try properly installing dependencies
zooba May 1, 2018
d0440d3
Try properly installing dependencies #2
zooba May 1, 2018
1b06e42
Try properly installing Python's build dependencies
zooba May 1, 2018
d1629d1
Try properly installing Python's build dependencies #2
zooba May 1, 2018
88033f1
Apparently the package is always called python3.5
zooba May 1, 2018
12e61f3
Reenable tests on Linux
zooba May 1, 2018
7a6712c
Fixes poplib tests and reenables network tests
zooba May 1, 2018
37c0625
Adds retry for used ports in asyncio etsts
zooba May 1, 2018
49e3a38
Also check setxattr works on paths
zooba May 1, 2018
1e48e98
Let asyncio test choose its own socket
zooba May 1, 2018
2abe545
Merge remote-tracking branch 'cpython/master' into vsts
zooba May 8, 2018
79f8331
Add PR-specific build definitions
zooba May 9, 2018
6dff958
Improve can_xattr test to detect problems in temp subdirectories
zooba May 9, 2018
2599298
Re-enable network tests for macOS build
zooba May 9, 2018
631c4ae
Another attempt at skipping the xattr test
zooba May 9, 2018
9b5cde9
Add docs build
zooba May 9, 2018
b2526e7
Fixes YAML file
zooba May 9, 2018
a9d7b1e
Update working directory for docs make
zooba May 9, 2018
fbb1db2
Update working directory for docs make (again)
zooba May 9, 2018
9e03afb
Fixes case sensitivity
zooba May 9, 2018
11123c1
Merge remote-tracking branch 'cpython/master' into vsts
zooba May 9, 2018
3aa5d79
Fix launch commands
zooba May 9, 2018
52a3bdf
Fix launch commands
zooba May 9, 2018
121e259
Adds docs theme to Windows build
zooba May 9, 2018
d11183b
Add OpenSSL install to macOS build
zooba May 9, 2018
2f90e21
Fix OpenSSL in macOS build
zooba May 9, 2018
12c5d70
Add LaTeX install step
zooba May 9, 2018
d949d58
Add apt-get update step
zooba May 9, 2018
72c1c11
Make apt-get update non-interactive
zooba May 9, 2018
274efd2
Merge remote-tracking branch 'cpython/master' into vsts
zooba May 13, 2018
d0f90ff
Fixes doc build
zooba May 13, 2018
c723dcb
Update triggers
zooba May 13, 2018
1ec0baa
Separate docs and doc release build
zooba May 13, 2018
a88a786
Simplify doc build script (and test CI)
zooba May 14, 2018
a78eac7
Testing failed test
zooba May 14, 2018
482b9ec
Un-break tests for testing
zooba May 14, 2018
9ed2ae0
Add print for support.HOST
zooba May 14, 2018
1aabfa2
Try fixing asyncio issue
zooba May 14, 2018
43a98fc
Trying again
zooba May 14, 2018
9366e6b
Shorten tests and add logging
zooba May 14, 2018
1cf4de3
Fix IPv6 asyncio tests
zooba May 15, 2018
90254c9
Force IPv4 when IPv6 is missing
zooba May 15, 2018
4d92398
Fix poplib test and update Windows build
zooba May 15, 2018
190bfa7
Ignores unknown certificate error in poplib test
zooba May 15, 2018
48a1ecc
Logging for limited FD test
zooba May 15, 2018
be1d18b
Skip on EINVAL error on macOS and add logging for poplib
zooba May 15, 2018
07b370c
Skips expected SSL error
zooba May 15, 2018
08f70b0
Adds NEWS entry
zooba May 15, 2018
abab1db
Reenable all tests
zooba May 15, 2018
a90665a
Fix resources property for Windows
zooba May 15, 2018
a13fc1c
Merge remote-tracking branch 'cpython/master' into vsts
zooba May 15, 2018
3db6932
Remove debug print
zooba May 15, 2018
ddc3643
Ensure uuid-dev is installed
zooba May 15, 2018
ba164dc
Adds dependencies template
zooba May 16, 2018
1eb6da7
Replaces template with copy-pasted code
zooba May 16, 2018
02a49ce
Fixes variables
zooba May 16, 2018
ab8da86
Fixes variables properly
zooba May 16, 2018
ffad46f
Changes PATH variable
zooba May 16, 2018
ea74775
Improves dependency install
zooba May 16, 2018
643d5ae
Make multissl display errors
zooba May 16, 2018
3b8ebfb
Switch to extended dependencies list
zooba May 16, 2018
912a8a9
Build SSL with python3 and debugging
zooba May 16, 2018
91ebd0d
Temporarily adds upload for multissl sources
zooba May 16, 2018
06619ea
Update OpenSSL build configuration
zooba May 16, 2018
df25e90
Try to fix OpenSSL build
zooba May 16, 2018
a87a24f
Try to fix OpenSSL build
zooba May 16, 2018
dc55029
Update Linux dependencies steps
zooba May 16, 2018
14976f8
Fix coverage
zooba May 16, 2018
5719ed4
Improves test stability
zooba May 16, 2018
79838b2
Merge remote-tracking branch 'cpython/master' into vsts
zooba May 16, 2018
2d27080
Add retry to sendfile tests
zooba May 16, 2018
ef27ec1
Handle OSError for retries
zooba May 16, 2018
b5e30b8
Retry harder
zooba May 16, 2018
96925ad
Enable patchcheck for PRs
zooba May 16, 2018
1779c20
Remove test branch. Add fix for bpo-33548
zooba May 16, 2018
9d908ae
Fix whitespace
zooba May 16, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions .vsts/docs-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Current docs for the syntax of this file are at:
# https://github.com/Microsoft/vsts-agent/blob/master/docs/preview/yamlgettingstarted.md

name: $(BuildDefinitionName)_$(Date:yyyyMMdd)$(Rev:.rr)

queue:
name: Hosted Linux Preview

#variables:

steps:
- checkout: self
clean: true
fetchDepth: 5

- script: sudo apt-get update && sudo apt-get install -qy --force-yes texlive-full
displayName: 'Install LaTeX'

- task: UsePythonVersion@0
displayName: 'Use Python 3.6 or later'
inputs:
versionSpec: '>=3.6'

- script: python -m pip install sphinx blurb python-docs-theme
displayName: 'Install build dependencies'

- script: make dist PYTHON=python SPHINXBUILD='python -m sphinx' BLURB='python -m blurb'
workingDirectory: '$(build.sourcesDirectory)/Doc'
displayName: 'Build documentation'

- task: PublishBuildArtifacts@1
displayName: 'Publish build'
inputs:
PathToPublish: '$(build.sourcesDirectory)/Doc/build'
ArtifactName: build
publishLocation: Container

- task: PublishBuildArtifacts@1
displayName: 'Publish dist'
inputs:
PathToPublish: '$(build.sourcesDirectory)/Doc/dist'
ArtifactName: dist
publishLocation: Container
43 changes: 43 additions & 0 deletions .vsts/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Current docs for the syntax of this file are at:
# https://github.com/Microsoft/vsts-agent/blob/master/docs/preview/yamlgettingstarted.md

name: $(BuildDefinitionName)_$(Date:yyyyMMdd)$(Rev:.rr)

queue:
name: Hosted Linux Preview

trigger:
branches:
include:
- master
- 3.7
- 3.6
paths:
include:
- Doc/*

#variables:

steps:
- checkout: self
clean: true
fetchDepth: 5

- task: UsePythonVersion@0
displayName: 'Use Python 3.6 or later'
inputs:
versionSpec: '>=3.6'

- script: python -m pip install sphinx~=1.6.1 blurb python-docs-theme
displayName: 'Install build dependencies'

- script: make check suspicious html PYTHON=python
workingDirectory: '$(build.sourcesDirectory)/Doc'
displayName: 'Build documentation'

- task: PublishBuildArtifacts@1
displayName: 'Publish build'
inputs:
PathToPublish: '$(build.sourcesDirectory)/Doc/build'
ArtifactName: build
publishLocation: Container
71 changes: 71 additions & 0 deletions .vsts/linux-buildbot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
# Current docs for the syntax of this file are at:
# https://github.com/Microsoft/vsts-agent/blob/master/docs/preview/yamlgettingstarted.md

name: $(BuildDefinitionName)_$(Date:yyyyMMdd)$(Rev:.rr)

queue:
name: Hosted Linux Preview

trigger:
branches:
include:
- master
- 3.7
- 3.6
paths:
exclude:
- Doc/*
- Tools/*

variables:
# Copy-pasted from linux-deps.yml until template support arrives
OPENSSL: 1.1.0g
OPENSSL_DIR: "$(build.sourcesDirectory)/multissl/openssl/$(OPENSSL)"


steps:
- checkout: self
clean: true
fetchDepth: 5

#- template: linux-deps.yml

# See https://github.com/Microsoft/vsts-agent/blob/master/docs/preview/yamlgettingstarted-templates.md
# For now, we copy/paste the steps
- script: echo "deb-src http://archive.ubuntu.com/ubuntu/ xenial main" > /etc/apt/sources.list.d/python.list && sudo apt-get update
displayName: 'Update apt-get lists'

- script: echo ##vso[task.prependpath]$(OPENSSL_DIR)
displayName: 'Add $(OPENSSL_DIR) to PATH'
- script: >
sudo apt-get -yq install
build-essential
zlib1g-dev
libbz2-dev
liblzma-dev
libncurses5-dev
libreadline6-dev
libsqlite3-dev
libssl-dev
libgdbm-dev
tk-dev
lzma
lzma-dev
liblzma-dev
libffi-dev
uuid-dev
displayName: 'Install dependencies'
- script: python3 Tools/ssl/multissltests.py --steps=library --base-directory $(build.sourcesDirectory)/multissl --openssl $(OPENSSL) --system Linux
displayName: 'python multissltests.py'

- script: ./configure --with-pydebug
displayName: 'Configure CPython (debug)'

- script: make -s -j4
displayName: 'Build CPython'

- script: make pythoninfo
displayName: 'Display build info'

- script: make buildbottest TESTOPTS="-j4 -uall,-cpu"
displayName: 'Tests'
77 changes: 77 additions & 0 deletions .vsts/linux-coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
# Current docs for the syntax of this file are at:
# https://github.com/Microsoft/vsts-agent/blob/master/docs/preview/yamlgettingstarted.md

name: $(BuildDefinitionName)_$(Date:yyyyMMdd)$(Rev:.rr)

queue:
name: Hosted Linux Preview

trigger:
branches:
include:
- master
- 3.7
- 3.6
paths:
exclude:
- Doc/*
- Tools/*

variables:
# Copy-pasted from linux-deps.yml until template support arrives
OPENSSL: 1.1.0g
OPENSSL_DIR: "$(build.sourcesDirectory)/multissl/openssl/$(OPENSSL)"

steps:
- checkout: self
clean: true
fetchDepth: 5

#- template: linux-deps.yml

# See https://github.com/Microsoft/vsts-agent/blob/master/docs/preview/yamlgettingstarted-templates.md
# For now, we copy/paste the steps
- script: echo "deb-src http://archive.ubuntu.com/ubuntu/ xenial main" > /etc/apt/sources.list.d/python.list && sudo apt-get update
displayName: 'Update apt-get lists'

- script: echo ##vso[task.prependpath]$(OPENSSL_DIR)
displayName: 'Add $(OPENSSL_DIR) to PATH'
- script: >
sudo apt-get -yq install
build-essential
zlib1g-dev
libbz2-dev
liblzma-dev
libncurses5-dev
libreadline6-dev
libsqlite3-dev
libssl-dev
libgdbm-dev
tk-dev
lzma
lzma-dev
liblzma-dev
libffi-dev
uuid-dev
displayName: 'Install dependencies'
- script: python3 Tools/ssl/multissltests.py --steps=library --base-directory $(build.sourcesDirectory)/multissl --openssl $(OPENSSL) --system Linux
displayName: 'python multissltests.py'


- script: ./configure --with-pydebug
displayName: 'Configure CPython (debug)'

- script: make -s -j4
displayName: 'Build CPython'

- script: ./python -m venv venv && ./venv/bin/python -m pip install -U coverage
displayName: 'Set up virtual environment'

- script: ./venv/bin/python -m test.pythoninfo
displayName: 'Display build info'

- script: ./venv/bin/python -m coverage run --pylib -m test --fail-env-changed -uall,-cpu -x test_multiprocessing_fork -x test_multiprocessing_forkserver -x test_multiprocessing_spawn -x test_concurrent_futures
displayName: 'Tests with coverage'

- script: source ./venv/bin/activate && bash <(curl -s https://codecov.io/bash)
displayName: 'Publish code coverage results'
36 changes: 36 additions & 0 deletions .vsts/linux-deps.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Note: this file is not currently used, but when template support comes to VSTS it
# will be referenced from the other scripts..

# Current docs for the syntax of this file are at:
# https://github.com/Microsoft/vsts-agent/blob/master/docs/preview/yamlgettingstarted.md

parameters:
OPENSSL: 1.1.0g
OPENSSL_DIR: "$(build.sourcesDirectory)/multissl/openssl/$(OPENSSL)"

steps:
- script: echo "deb-src http://archive.ubuntu.com/ubuntu/ xenial main" > /etc/apt/sources.list.d/python.list && sudo apt-get update
displayName: 'Update apt-get lists'

- script: echo ##vso[task.prependpath]$(OPENSSL_DIR)
displayName: 'Add $(OPENSSL_DIR) to PATH'
- script: >
sudo apt-get -yq install
build-essential
zlib1g-dev
libbz2-dev
liblzma-dev
libncurses5-dev
libreadline6-dev
libsqlite3-dev
libssl-dev
libgdbm-dev
tk-dev
lzma
lzma-dev
liblzma-dev
libffi-dev
uuid-dev
displayName: 'Install dependencies'
- script: python3 Tools/ssl/multissltests.py --steps=library --base-directory $(build.sourcesDirectory)/multissl --openssl $(OPENSSL) --system Linux
displayName: 'python multissltests.py'
75 changes: 75 additions & 0 deletions .vsts/linux-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
# Current docs for the syntax of this file are at:
# https://github.com/Microsoft/vsts-agent/blob/master/docs/preview/yamlgettingstarted.md

name: $(BuildDefinitionName)_$(Date:yyyyMMdd)$(Rev:.rr)

queue:
name: Hosted Linux Preview

trigger:
branches:
include:
- master
- 3.7
- 3.6
paths:
exclude:
- Doc/*
- Tools/*

variables:
# Copy-pasted from linux-deps.yml until template support arrives
OPENSSL: 1.1.0g
OPENSSL_DIR: "$(build.sourcesDirectory)/multissl/openssl/$(OPENSSL)"

steps:
- checkout: self
clean: true
fetchDepth: 5

#- template: linux-deps.yml

# See https://github.com/Microsoft/vsts-agent/blob/master/docs/preview/yamlgettingstarted-templates.md
# For now, we copy/paste the steps
- script: echo "deb-src http://archive.ubuntu.com/ubuntu/ xenial main" > /etc/apt/sources.list.d/python.list && sudo apt-get update
displayName: 'Update apt-get lists'

- script: echo ##vso[task.prependpath]$(OPENSSL_DIR)
displayName: 'Add $(OPENSSL_DIR) to PATH'
- script: >
sudo apt-get -yq install
build-essential
zlib1g-dev
libbz2-dev
liblzma-dev
libncurses5-dev
libreadline6-dev
libsqlite3-dev
libssl-dev
libgdbm-dev
tk-dev
lzma
lzma-dev
liblzma-dev
libffi-dev
uuid-dev
displayName: 'Install dependencies'
- script: python3 Tools/ssl/multissltests.py --steps=library --base-directory $(build.sourcesDirectory)/multissl --openssl $(OPENSSL) --system Linux
displayName: 'python multissltests.py'


- script: ./configure --with-pydebug
displayName: 'Configure CPython (debug)'

- script: make -s -j4
displayName: 'Build CPython'

- script: make pythoninfo
displayName: 'Display build info'

# Run patchcheck and fail if anything is discovered
- script: ./python Tools/scripts/patchcheck.py --travis true
displayName: 'Run patchcheck.py'

- script: make buildbottest TESTOPTS="-j4 -uall,-cpu"
displayName: 'Tests'
37 changes: 37 additions & 0 deletions .vsts/macos-buildbot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Current docs for the syntax of this file are at:
# https://github.com/Microsoft/vsts-agent/blob/master/docs/preview/yamlgettingstarted.md

name: $(BuildDefinitionName)_$(Date:yyyyMMdd)$(Rev:.rr)

queue:
name: Hosted macOS Preview

trigger:
branches:
include:
- master
- 3.7
- 3.6
paths:
exclude:
- Doc/*
- Tools/*

#variables:

steps:
- checkout: self
clean: true
fetchDepth: 5

- script: ./configure --with-pydebug --with-openssl=/usr/local/opt/openssl
displayName: 'Configure CPython (debug)'

- script: make -s -j4
displayName: 'Build CPython'

- script: make pythoninfo
displayName: 'Display build info'

- script: make buildbottest TESTOPTS="-j4 -uall,-cpu"
displayName: 'Tests'
Loading