-
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/dev'
- Loading branch information
Showing
10 changed files
with
140 additions
and
158 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# https://dev.azure.com/home-assistant | ||
|
||
trigger: | ||
batch: true | ||
branches: | ||
include: | ||
- master | ||
- dev | ||
pr: | ||
- dev | ||
variables: | ||
- name: versionHadolint | ||
value: 'v1.16.3' | ||
|
||
jobs: | ||
|
||
- job: 'Tox' | ||
pool: | ||
vmImage: 'ubuntu-latest' | ||
steps: | ||
- task: UsePythonVersion@0 | ||
displayName: 'Use Python $(python.version)' | ||
inputs: | ||
versionSpec: '3.7' | ||
- script: pip install tox | ||
displayName: 'Install Tox' | ||
- script: tox | ||
displayName: 'Run Tox' | ||
|
||
|
||
- job: 'Hadolint' | ||
pool: | ||
vmImage: 'ubuntu-latest' | ||
steps: | ||
- script: sudo docker pull hadolint/hadolint:$(versionHadolint) | ||
displayName: 'Install Hadolint' | ||
- script: | | ||
sudo docker run --rm -i \ | ||
-v $(pwd)/.hadolint.yaml:/.hadolint.yaml:ro \ | ||
hadolint/hadolint:$(versionHadolint) < Dockerfile | ||
displayName: 'Run Hadolint' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
# https://dev.azure.com/home-assistant | ||
|
||
trigger: | ||
tags: | ||
include: | ||
- '*' | ||
pr: none | ||
variables: | ||
- name: versionBuilder | ||
value: '4.4' | ||
- group: docker | ||
resources: | ||
repositories: | ||
- repository: azure | ||
type: github | ||
name: 'home-assistant/ci-azure' | ||
endpoint: 'home-assistant' | ||
|
||
|
||
stages: | ||
|
||
- stage: 'Validate' | ||
jobs: | ||
- template: templates/azp-job-version.yaml@azure | ||
parameters: | ||
ignoreDev: true | ||
|
||
- stage: 'Wheels' | ||
jobs: | ||
- template: templates/azp-job-wheels.yaml@azure | ||
parameters: | ||
jobName: 'Wheels_Alpine39' | ||
builderVersion: 'dev-3.7-alpine3.9' | ||
builderApk: 'build-base;libffi-dev;openssl-dev' | ||
wheelsRequirement: 'requirements_all.txt' | ||
preBuild: | ||
- script: | | ||
cat requirements.txt requirements_build.txt > requirements_all.txt | ||
displayName: 'Prepare requirements' | ||
- template: templates/azp-job-wheels.yaml@azure | ||
parameters: | ||
jobName: 'Wheels_Alpine310' | ||
builderVersion: 'dev-3.7-alpine3.10' | ||
builderApk: 'build-base;libffi-dev;openssl-dev' | ||
wheelsRequirement: 'requirements_all.txt' | ||
preBuild: | ||
- script: | | ||
cat requirements.txt requirements_build.txt > requirements_all.txt | ||
displayName: 'Prepare requirements' | ||
- stage: 'Release' | ||
jobs: | ||
- job: 'Release' | ||
pool: | ||
vmImage: 'ubuntu-latest' | ||
strategy: | ||
maxParallel: 2 | ||
matrix: | ||
37-Alpine39: | ||
buildPython: '3.7-alpine3.9' | ||
buildArgs: '' | ||
37-Alpine310: | ||
buildPython: '3.7-alpine3.10' | ||
buildArgs: '--release-tag' | ||
steps: | ||
- script: sudo docker login -u $(dockerUser) -p $(dockerPassword) | ||
displayName: 'Docker hub login' | ||
- script: sudo docker pull homeassistant/amd64-builder:$(versionBuilder) | ||
displayName: 'Install Builder' | ||
- script: | | ||
sudo docker run --rm --privileged \ | ||
-v ~/.docker:/root/.docker \ | ||
-v /run/docker.sock:/run/docker.sock:rw -v $(pwd):/data:ro \ | ||
homeassistant/amd64-builder:$(versionBuilder) \ | ||
--builder-wheels $(buildPython) --all \ | ||
$(buildArgs) --version $(Build.SourceBranchName) \ | ||
-t /data --docker-hub homeassistant | ||
displayName: 'Build Release' |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
Cython==0.29.13 | ||
numpy==1.17.1 | ||
numpy==1.17.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
flake8==3.7.8 | ||
pylint==2.3.1 | ||
pylint==2.4.2 | ||
black==19.3b0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
from setuptools import setup | ||
|
||
VERSION = "1.3" | ||
VERSION = "1.4" | ||
|
||
setup( | ||
name="builder", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters