mirror of
https://github.com/home-assistant/frontend.git
synced 2025-04-26 14:27:20 +00:00
Build wheels from release & Templates
This commit is contained in:
parent
d85f9f9021
commit
fa40135a27
@ -7,31 +7,23 @@ trigger:
|
|||||||
- "*"
|
- "*"
|
||||||
pr: none
|
pr: none
|
||||||
variables:
|
variables:
|
||||||
- name: versionBuilder
|
- name: versionWheels
|
||||||
value: "5.2"
|
value: '1.1-3.7-alpine3.10'
|
||||||
- group: github
|
- name: versionNode
|
||||||
|
value: '12.1'
|
||||||
- group: twine
|
- group: twine
|
||||||
|
resources:
|
||||||
|
repositories:
|
||||||
|
- repository: azure
|
||||||
|
type: github
|
||||||
|
name: 'home-assistant/ci-azure'
|
||||||
|
endpoint: 'home-assistant'
|
||||||
|
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- stage: "Validate"
|
- stage: "Validate"
|
||||||
jobs:
|
jobs:
|
||||||
- job: "VersionValidate"
|
- template: templates/azp-job-version.yaml@azure
|
||||||
pool:
|
|
||||||
vmImage: "ubuntu-latest"
|
|
||||||
steps:
|
|
||||||
- task: UsePythonVersion@0
|
|
||||||
displayName: "Use Python 3.7"
|
|
||||||
inputs:
|
|
||||||
versionSpec: "3.7"
|
|
||||||
- script: |
|
|
||||||
setup_version="$(python setup.py -V)"
|
|
||||||
branch_version="$(Build.SourceBranchName)"
|
|
||||||
|
|
||||||
if [ "${setup_version}" != "${branch_version}" ]; then
|
|
||||||
echo "Version of tag ${branch_version} don't match with ${setup_version}!"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
displayName: "Check version of branch/tag"
|
|
||||||
|
|
||||||
- stage: "Build"
|
- stage: "Build"
|
||||||
jobs:
|
jobs:
|
||||||
@ -44,9 +36,9 @@ stages:
|
|||||||
inputs:
|
inputs:
|
||||||
versionSpec: "3.7"
|
versionSpec: "3.7"
|
||||||
- task: NodeTool@0
|
- task: NodeTool@0
|
||||||
displayName: "Use Node 12.1"
|
displayName: "Use Node $(versionNode)"
|
||||||
inputs:
|
inputs:
|
||||||
versionSpec: "12.1"
|
versionSpec: "$(versionNode)"
|
||||||
- script: pip install twine wheel
|
- script: pip install twine wheel
|
||||||
displayName: "Install tools"
|
displayName: "Install tools"
|
||||||
- script: |
|
- script: |
|
||||||
@ -55,3 +47,18 @@ stages:
|
|||||||
|
|
||||||
script/release
|
script/release
|
||||||
displayName: "Build and release package"
|
displayName: "Build and release package"
|
||||||
|
- template: templates/azp-job-wheels.yaml@azure
|
||||||
|
parameters:
|
||||||
|
builderVersion: '$(versionWheels)'
|
||||||
|
builderApk: 'build-base'
|
||||||
|
wheelsLocal: true
|
||||||
|
preBuild:
|
||||||
|
- task: NodeTool@0
|
||||||
|
displayName: "Use Node $(versionNode)"
|
||||||
|
inputs:
|
||||||
|
versionSpec: "$(versionNode)"
|
||||||
|
- script: |
|
||||||
|
set -e
|
||||||
|
|
||||||
|
yarn install
|
||||||
|
script/build_frontend
|
||||||
|
Loading…
x
Reference in New Issue
Block a user