зеркало из https://github.com/microsoft/genalog.git
Add nightly build
This commit is contained in:
Родитель
547aa2c0f9
Коммит
60585902d1
|
@ -0,0 +1,12 @@
|
|||
name: $(Date:yyyyMMdd).$(Rev:r)
|
||||
|
||||
stages:
|
||||
- template: pr-gate-os.yml
|
||||
|
||||
- stage: publish_artifacts
|
||||
jobs:
|
||||
- job: archive_wheel_and_sdist
|
||||
pool:
|
||||
vmImage: 'ubuntu-latest'
|
||||
steps:
|
||||
- template: templates/build_wheel_n_sdist.yml
|
|
@ -0,0 +1,31 @@
|
|||
# Template to create wheel and source distribution
|
||||
parameters:
|
||||
- name: pyVersion
|
||||
default: '3.6'
|
||||
|
||||
steps:
|
||||
- task: UsePythonVersion@0
|
||||
inputs:
|
||||
versionSpec: ${{ parameters.pyVersion }}
|
||||
addToPath: true
|
||||
architecture: 'x64'
|
||||
displayName: 'Use Python ${{ parameters.pyVersion }}'
|
||||
|
||||
- bash: |
|
||||
python -m pip install --upgrade pip setuptools wheel
|
||||
displayName: 'Update pip and setuptools'
|
||||
|
||||
- bash: |
|
||||
python setup.py bdist_wheel
|
||||
workingDirectory: $(Build.SourcesDirectory)
|
||||
displayName: 'Build wheel'
|
||||
|
||||
- bash: |
|
||||
python setup.py sdist
|
||||
workingDirectory: $(Build.SourcesDirectory)
|
||||
displayName: 'Build source distribution'
|
||||
|
||||
- bash: |
|
||||
ls dist
|
||||
workingDirectory: $(Build.SourcesDirectory)
|
||||
displayName: 'Show artifacts in folder'
|
Загрузка…
Ссылка в новой задаче