Skip to content

Commit

Permalink
Enable windows CD
Browse files Browse the repository at this point in the history
Signed-off-by: Alexey Stepanov <penguinolog@gmail.com>
  • Loading branch information
penguinolog committed Nov 21, 2018
1 parent 1a9ca96 commit e92e03c
Show file tree
Hide file tree
Showing 2 changed files with 73 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.rst
Expand Up @@ -3,6 +3,9 @@ Advanced descriptors

.. image:: https://travis-ci.org/python-useful-helpers/advanced-descriptors.svg?branch=master
:target: https://travis-ci.org/python-useful-helpers/advanced-descriptors
.. image:: https://dev.azure.com/python-useful-helpers/advanced-descriptors/_apis/build/status/python-useful-helpers.advanced-descriptors?branchName=master
:alt: Azure DevOps builds
:target: https://dev.azure.com/python-useful-helpers/advanced-descriptors/_build?definitionId=2
.. image:: https://coveralls.io/repos/github/python-useful-helpers/advanced-descriptors/badge.svg?branch=master
:target: https://coveralls.io/github/python-useful-helpers/advanced-descriptors?branch=master
.. image:: https://readthedocs.org/projects/advanced-descriptors/badge/?version=latest
Expand Down Expand Up @@ -208,6 +211,8 @@ For code checking several CI systems is used in parallel:

2. `coveralls: <https://coveralls.io/github/python-useful-helpers/advanced-descriptors>`_ is used for coverage display.

3. `Azure CI: <https://dev.azure.com/python-useful-helpers/advanced-descriptors/_build?definitionId=2>`_ is used for functional tests on Windows.

CD system
=========
`Travis CI: <https://travis-ci.org/python-useful-helpers/advanced-descriptors>`_ is used for package delivery on PyPI.
68 changes: 68 additions & 0 deletions azure-pipelines.yml
Expand Up @@ -50,3 +50,71 @@ jobs:
parameters: {name: 'Python_37', python: '3.7', architecture: 'x64', kind: 'cython'}
- template: .azure_pipelines/run_tests.yml
parameters: {name: 'Python_37', python: '3.7', architecture: 'x86', kind: 'cython'}

- job: 'Build_and_deploy'
dependsOn:
- Python_34_x64_native
- Python_35_x64_native
- Python_36_x64_native
- Python_37_x64_native

- Python_34_x64_cython
- Python_34_x86_cython
- Python_35_x64_cython
- Python_35_x86_cython
- Python_36_x64_cython
- Python_36_x86_cython
- Python_37_x64_cython
- Python_37_x86_cython
condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/'))
pool:
vmIMage: 'VS2017-Win2016'
strategy:
maxParallel: 6
matrix:
Python34_x64:
python.version: '3.4'
Python34_x86:
python.version: '3.4'
architecture: 'x86'
Python35_x64:
python.version: '3.5'
Python35_x86:
python.version: '3.5'
architecture: 'x86'
Python36_x64:
python.version: '3.6'
Python36_x86:
python.version: '3.6'
architecture: 'x86'
Python37_x64:
python.version: '3.7'
Python37_x86:
python.version: '3.7'
architecture: 'x86'

steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '$(python.version)'
architecture: 'x64'

- script: |
python -m pip install --upgrade pip
pip install -U setuptools
pip install -r build_requirements.txt
displayName: 'Install dependencies'
- script: |
python setup.py bdist_wheel
displayName: 'Build'
- task: TwineAuthenticate@0
displayName: 'Twine Authenticate '
inputs:
externalFeeds: PyPI

- script: |
pip install -U twine
twine upload -r PyPI --config-file $(PYPIRC_PATH) dist/Advanced_Descriptors-* --skip-existing
displayName: 'Deploy'

0 comments on commit e92e03c

Please sign in to comment.