2019-06-05 07:11:56 +00:00
|
|
|
# https://dev.azure.com/home-assistant
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
branches:
|
|
|
|
include:
|
|
|
|
- dev
|
2020-03-22 15:37:33 +00:00
|
|
|
- rc
|
2019-06-05 07:30:08 +00:00
|
|
|
paths:
|
|
|
|
include:
|
|
|
|
- requirements_all.txt
|
2019-06-05 07:25:46 +00:00
|
|
|
pr: none
|
2019-08-04 15:04:29 +00:00
|
|
|
schedules:
|
2019-08-26 15:12:57 +00:00
|
|
|
- cron: '0 */4 * * *'
|
2019-08-05 06:54:44 +00:00
|
|
|
displayName: 'daily builds'
|
2019-08-04 15:04:29 +00:00
|
|
|
branches:
|
|
|
|
include:
|
|
|
|
- dev
|
2019-06-05 07:11:56 +00:00
|
|
|
variables:
|
|
|
|
- name: versionWheels
|
2020-07-11 13:20:14 +00:00
|
|
|
value: '1.13.0-3.8-alpine3.12'
|
2019-08-04 12:32:35 +00:00
|
|
|
resources:
|
|
|
|
repositories:
|
|
|
|
- repository: azure
|
|
|
|
type: github
|
|
|
|
name: 'home-assistant/ci-azure'
|
|
|
|
endpoint: 'home-assistant'
|
2019-06-05 07:11:56 +00:00
|
|
|
|
|
|
|
jobs:
|
2020-07-29 14:11:06 +00:00
|
|
|
- template: templates/azp-job-wheels.yaml@azure
|
|
|
|
parameters:
|
|
|
|
builderVersion: '$(versionWheels)'
|
|
|
|
builderApk: 'build-base;cmake;git;linux-headers;bluez-dev;libffi-dev;openssl-dev;glib-dev;eudev-dev;libxml2-dev;libxslt-dev'
|
|
|
|
builderPip: 'Cython;numpy'
|
|
|
|
skipBinary: 'aiohttp'
|
|
|
|
wheelsRequirement: 'requirements.txt'
|
|
|
|
wheelsRequirementDiff: 'requirements_diff.txt'
|
|
|
|
wheelsConstraint: 'homeassistant/package_constraints.txt'
|
2020-07-29 16:47:48 +00:00
|
|
|
jobName: 'Wheels_Core'
|
2020-07-29 14:11:06 +00:00
|
|
|
preBuild:
|
|
|
|
- script: |
|
|
|
|
if [[ "$(Build.Reason)" =~ (Schedule|Manual) ]]; then
|
|
|
|
exit 0
|
|
|
|
else
|
|
|
|
curl -s -o requirements_diff.txt https://raw.githubusercontent.com/home-assistant/core/master/requirements.txt
|
|
|
|
fi
|
|
|
|
displayName: 'Prepare requirements files for Home Assistant Core wheels'
|
2019-08-04 12:32:35 +00:00
|
|
|
- template: templates/azp-job-wheels.yaml@azure
|
|
|
|
parameters:
|
|
|
|
builderVersion: '$(versionWheels)'
|
2020-01-28 08:41:50 +00:00
|
|
|
builderApk: 'build-base;cmake;git;linux-headers;bluez-dev;libffi-dev;openssl-dev;glib-dev;eudev-dev;libxml2-dev;libxslt-dev;libpng-dev;libjpeg-turbo-dev;tiff-dev;autoconf;automake;cups-dev;gmp-dev;mpfr-dev;mpc1-dev;ffmpeg-dev;gammu-dev'
|
2020-08-10 14:34:52 +00:00
|
|
|
builderPip: 'Cython;numpy;scikit-build'
|
2020-09-10 13:56:05 +00:00
|
|
|
builderEnvFile: true
|
2020-03-25 20:43:29 +00:00
|
|
|
skipBinary: 'aiohttp'
|
2019-08-04 12:32:35 +00:00
|
|
|
wheelsRequirement: 'requirements_wheels.txt'
|
|
|
|
wheelsRequirementDiff: 'requirements_diff.txt'
|
2020-03-23 15:54:06 +00:00
|
|
|
wheelsConstraint: 'homeassistant/package_constraints.txt'
|
2020-07-29 16:47:48 +00:00
|
|
|
jobName: 'Wheels_Integrations'
|
2019-08-04 12:32:35 +00:00
|
|
|
preBuild:
|
|
|
|
- script: |
|
|
|
|
cp requirements_all.txt requirements_wheels.txt
|
|
|
|
if [[ "$(Build.Reason)" =~ (Schedule|Manual) ]]; then
|
|
|
|
touch requirements_diff.txt
|
|
|
|
else
|
2020-03-02 22:01:40 +00:00
|
|
|
curl -s -o requirements_diff.txt https://raw.githubusercontent.com/home-assistant/core/master/requirements_all.txt
|
2019-08-04 12:32:35 +00:00
|
|
|
fi
|
2019-06-05 07:11:56 +00:00
|
|
|
|
2019-08-04 12:32:35 +00:00
|
|
|
requirement_files="requirements_wheels.txt requirements_diff.txt"
|
|
|
|
for requirement_file in ${requirement_files}; do
|
|
|
|
sed -i "s|# pybluez|pybluez|g" ${requirement_file}
|
|
|
|
sed -i "s|# bluepy|bluepy|g" ${requirement_file}
|
|
|
|
sed -i "s|# beacontools|beacontools|g" ${requirement_file}
|
|
|
|
sed -i "s|# RPi.GPIO|RPi.GPIO|g" ${requirement_file}
|
|
|
|
sed -i "s|# raspihats|raspihats|g" ${requirement_file}
|
|
|
|
sed -i "s|# rpi-rf|rpi-rf|g" ${requirement_file}
|
|
|
|
sed -i "s|# blinkt|blinkt|g" ${requirement_file}
|
|
|
|
sed -i "s|# fritzconnection|fritzconnection|g" ${requirement_file}
|
|
|
|
sed -i "s|# pyuserinput|pyuserinput|g" ${requirement_file}
|
|
|
|
sed -i "s|# evdev|evdev|g" ${requirement_file}
|
|
|
|
sed -i "s|# smbus-cffi|smbus-cffi|g" ${requirement_file}
|
|
|
|
sed -i "s|# i2csense|i2csense|g" ${requirement_file}
|
|
|
|
sed -i "s|# python-eq3bt|python-eq3bt|g" ${requirement_file}
|
|
|
|
sed -i "s|# pycups|pycups|g" ${requirement_file}
|
|
|
|
sed -i "s|# homekit|homekit|g" ${requirement_file}
|
|
|
|
sed -i "s|# decora_wifi|decora_wifi|g" ${requirement_file}
|
|
|
|
sed -i "s|# decora|decora|g" ${requirement_file}
|
2019-09-12 11:28:48 +00:00
|
|
|
sed -i "s|# avion|avion|g" ${requirement_file}
|
2019-08-04 12:32:35 +00:00
|
|
|
sed -i "s|# PySwitchbot|PySwitchbot|g" ${requirement_file}
|
|
|
|
sed -i "s|# pySwitchmate|pySwitchmate|g" ${requirement_file}
|
|
|
|
sed -i "s|# face_recognition|face_recognition|g" ${requirement_file}
|
2019-08-30 12:48:08 +00:00
|
|
|
sed -i "s|# py_noaa|py_noaa|g" ${requirement_file}
|
2019-09-12 11:28:48 +00:00
|
|
|
sed -i "s|# bme680|bme680|g" ${requirement_file}
|
2020-01-28 08:41:50 +00:00
|
|
|
sed -i "s|# python-gammu|python-gammu|g" ${requirement_file}
|
2019-08-04 12:32:35 +00:00
|
|
|
done
|
2020-09-10 13:56:05 +00:00
|
|
|
|
|
|
|
# Write env for build settings
|
|
|
|
(
|
|
|
|
echo "GRPC_BUILD_WITH_BORING_SSL_ASM=0"
|
|
|
|
echo "GRPC_PYTHON_BUILD_SYSTEM_OPENSSL=1"
|
|
|
|
) > .env_file
|
2020-04-01 20:11:29 +00:00
|
|
|
displayName: 'Prepare requirements files for Home Assistant wheels'
|