|
| 1 | +# Current docs for the syntax of this file are at: |
| 2 | +# https://github.com/Microsoft/vsts-agent/blob/master/docs/preview/yamlgettingstarted.md |
| 3 | + |
| 4 | +name: $(BuildDefinitionName)_$(Date:yyyyMMdd)$(Rev:.rr) |
| 5 | + |
| 6 | +queue: |
| 7 | + name: Hosted Linux Preview |
| 8 | + |
| 9 | +trigger: |
| 10 | + branches: |
| 11 | + include: |
| 12 | + - master |
| 13 | + - 3.7 |
| 14 | + - 3.6 |
| 15 | + paths: |
| 16 | + exclude: |
| 17 | + - Doc/* |
| 18 | + - Tools/* |
| 19 | + |
| 20 | +variables: |
| 21 | + # Copy-pasted from linux-deps.yml until template support arrives |
| 22 | + OPENSSL: 1.1.0g |
| 23 | + OPENSSL_DIR: "$(build.sourcesDirectory)/multissl/openssl/$(OPENSSL)" |
| 24 | + |
| 25 | +steps: |
| 26 | +- checkout: self |
| 27 | + clean: true |
| 28 | + fetchDepth: 5 |
| 29 | + |
| 30 | +#- template: linux-deps.yml |
| 31 | + |
| 32 | +# See https://github.com/Microsoft/vsts-agent/blob/master/docs/preview/yamlgettingstarted-templates.md |
| 33 | +# For now, we copy/paste the steps |
| 34 | +- script: echo "deb-src http://archive.ubuntu.com/ubuntu/ xenial main" > /etc/apt/sources.list.d/python.list && sudo apt-get update |
| 35 | + displayName: 'Update apt-get lists' |
| 36 | + |
| 37 | +- script: echo ##vso[task.prependpath]$(OPENSSL_DIR) |
| 38 | + displayName: 'Add $(OPENSSL_DIR) to PATH' |
| 39 | +- script: > |
| 40 | + sudo apt-get -yq install |
| 41 | + build-essential |
| 42 | + zlib1g-dev |
| 43 | + libbz2-dev |
| 44 | + liblzma-dev |
| 45 | + libncurses5-dev |
| 46 | + libreadline6-dev |
| 47 | + libsqlite3-dev |
| 48 | + libssl-dev |
| 49 | + libgdbm-dev |
| 50 | + tk-dev |
| 51 | + lzma |
| 52 | + lzma-dev |
| 53 | + liblzma-dev |
| 54 | + libffi-dev |
| 55 | + uuid-dev |
| 56 | + displayName: 'Install dependencies' |
| 57 | +- script: python3 Tools/ssl/multissltests.py --steps=library --base-directory $(build.sourcesDirectory)/multissl --openssl $(OPENSSL) --system Linux |
| 58 | + displayName: 'python multissltests.py' |
| 59 | + |
| 60 | + |
| 61 | +- script: ./configure --with-pydebug |
| 62 | + displayName: 'Configure CPython (debug)' |
| 63 | + |
| 64 | +- script: make -s -j4 |
| 65 | + displayName: 'Build CPython' |
| 66 | + |
| 67 | +- script: ./python -m venv venv && ./venv/bin/python -m pip install -U coverage |
| 68 | + displayName: 'Set up virtual environment' |
| 69 | + |
| 70 | +- script: ./venv/bin/python -m test.pythoninfo |
| 71 | + displayName: 'Display build info' |
| 72 | + |
| 73 | +- 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 |
| 74 | + displayName: 'Tests with coverage' |
| 75 | + |
| 76 | +- script: source ./venv/bin/activate && bash <(curl -s https://codecov.io/bash) |
| 77 | + displayName: 'Publish code coverage results' |
0 commit comments