зеркало из https://github.com/microsoft/CCF.git
40 строки
1.1 KiB
YAML
40 строки
1.1 KiB
YAML
steps:
|
|
- script: |
|
|
set -ex
|
|
python3.8 -m venv env
|
|
source ./env/bin/activate
|
|
pip install -r requirements.txt
|
|
pip install wheel
|
|
python setup.py bdist_wheel
|
|
WHL=`ls dist/*.whl`
|
|
cp $WHL $(Build.ArtifactStagingDirectory)
|
|
WHL=`basename $WHL`
|
|
echo "##vso[task.setvariable variable=wheel]$WHL"
|
|
workingDirectory: python
|
|
displayName: Build wheel
|
|
|
|
- script: |
|
|
set -ex
|
|
CCF_VERSION=$(<../../build/VERSION_LONG)
|
|
CCF_VERSION=${CCF_VERSION#ccf-}
|
|
echo "Setting npm package version to ${CCF_VERSION}"
|
|
npm version $CCF_VERSION
|
|
npm pack
|
|
PKG=`ls *.tgz`
|
|
cp $PKG $(Build.ArtifactStagingDirectory)
|
|
echo "##vso[task.setvariable variable=npmtgz]$PKG"
|
|
workingDirectory: js/ccf-app
|
|
displayName: Build npm package
|
|
|
|
- task: PublishPipelineArtifact@1
|
|
inputs:
|
|
path: $(Build.ArtifactStagingDirectory)/$(wheel)
|
|
artifact: $(wheel)
|
|
displayName: "Publish CCF Wheel"
|
|
|
|
- task: PublishPipelineArtifact@1
|
|
inputs:
|
|
path: $(Build.ArtifactStagingDirectory)/$(npmtgz)
|
|
artifact: $(npmtgz)
|
|
displayName: "Publish CCF NPM Package"
|