File tree Expand file tree Collapse file tree 2 files changed +75
-18
lines changed Expand file tree Collapse file tree 2 files changed +75
-18
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ resources :
2+ - repo : self
3+
4+ trigger :
5+ batch : true
6+ branches :
7+ include :
8+ - ' *'
9+
10+ pr :
11+ branches :
12+ include :
13+ - ' *'
14+
15+ jobs :
16+ - job : TestInstall
17+ timeoutInMinutes : 10
18+
19+ pool :
20+ vmImage : ' ubuntu-16.04'
21+ strategy :
22+ matrix :
23+ Python27 :
24+ python.version : ' 2.7'
25+ Python35 :
26+ python.version : ' 3.5'
27+ Python36 :
28+ python.version : ' 3.6'
29+ steps :
30+ - task : UsePythonVersion@0
31+ displayName : ' Use Python $(python.version)'
32+ inputs :
33+ versionSpec : ' $(python.version)'
34+ - bash : |
35+ set -ev
36+
37+ pip install -e .
38+ displayName: Install from Source
39+
40+ - job : BuildPythonWheel
41+ condition : succeeded()
42+ pool :
43+ image : ' ubuntu-16.04'
44+ steps :
45+ - task : UsePythonVersion@0
46+ displayName : Use Python 3.6
47+ inputs :
48+ versionSpec : 3.6
49+ - bash : |
50+ set -ev
51+
52+ : "${BUILD_STAGINGDIRECTORY:?BUILD_STAGINGDIRECTORY environment variable not set}"
53+
54+ echo "Build knack"
55+ pip install -U pip setuptools wheel
56+ python setup.py bdist_wheel -d "${BUILD_STAGINGDIRECTORY}"
57+ python setup.py sdist -d "${BUILD_STAGINGDIRECTORY}"
58+ displayName: Build Wheel
59+ - task : PublishPipelineArtifact@0
60+ displayName : ' Publish Artifact: pypi'
61+ inputs :
62+ TargetPath : $(Build.ArtifactStagingDirectory)
63+ ArtifactName : pypi
64+ - task : DownloadPipelineArtifact@1
65+ displayName : ' Download PyPI Packages'
66+ inputs :
67+ TargetPath : ' $(Build.ArtifactStagingDirectory)/pypi'
68+ artifactName : pypi
69+ - bash : |
70+ set -ev
71+
72+ cd $BUILD_ARTIFACTSTAGINGDIRECTORY/pypi
73+ pwd
74+ ls -la
75+ displayName: Test Build Wheel
You can’t perform that action at this time.
0 commit comments