This commit is contained in:
Jianjie Liu (MAIDAP) 2021-01-27 21:03:21 -05:00
Родитель 547aa2c0f9
Коммит 60585902d1
2 изменённых файлов: 43 добавлений и 0 удалений

12
devops/nightly.yml Normal file
Просмотреть файл

@ -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'