This repository has been archived by the owner on May 20, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
azure-pipelines.yml
62 lines (56 loc) · 1.75 KB
/
azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: $(BuildDefinitionName)_$(Date:yyyyMMdd)$(Rev:.rr)
variables:
"System.PreferGit": true
trigger:
batch: true
branches:
include:
- master
- refs/tags/*
jobs:
- template: build-project.yml
parameters: {name: setuptools, git: "https://github.com/pypa/setuptools.git"}
- template: build-project.yml
parameters: {name: pip, git: "https://github.com/pypa/pip.git"}
- template: build-project.yml
parameters: {name: virtualenv, git: "https://github.com/pypa/virtualenv.git"}
- template: build-project.yml
parameters: {name: wheel, git: "https://github.com/pypa/wheel.git"}
- template: build-project.yml
parameters: {name: tox, git: "https://github.com/tox-dev/tox.git"}
- job: run_test
pool: {vmImage: 'Ubuntu 16.04'}
condition: always()
dependsOn:
- build_setuptools
- build_wheel
- build_virtualenv
- build_pip
- build_tox
steps:
- task: DownloadBuildArtifacts@0
displayName: download coverage files for run
inputs:
buildType: current
downloadType: specific
itemPattern: wheel-*/*
downloadPath: $(Build.StagingDirectory)
- task: UsePythonVersion@0
displayName: setup python
inputs:
versionSpec: 3.7
- script: "python3.7 -m pip install -U pip==19.0.1 devpi-server==4.8.0 devpi-client==4.2.0 twine==1.12.1"
displayName: install devpi
- script: |
devpi-server --start --init
devpi use http://localhost:3141
devpi user -c test password=123
devpi login test --password=123
devpi index -c dev bases=root/pypi
devpi use test/dev
ls -alth $(Build.StagingDirectory)/*/*.whl
devpi upload $(Build.StagingDirectory)/*/*.whl
displayName: bootstrap devpi
- script: devpi-server --stop
condition: succeededOrFailed()
displayName: stop devpi