2019-05-01 07:54:48 +00:00
|
|
|
# https://dev.azure.com/home-assistant
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
branches:
|
|
|
|
include:
|
|
|
|
- dev
|
|
|
|
tags:
|
|
|
|
include:
|
|
|
|
- '*'
|
|
|
|
|
|
|
|
variables:
|
|
|
|
versionBuilder: '3.1'
|
2019-05-01 08:06:08 +00:00
|
|
|
versionWheels: 'dev'
|
2019-05-01 07:54:48 +00:00
|
|
|
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
|
|
|
- job: 'Wheels'
|
|
|
|
condition: eq(variables['Build.SourceBranchName'], 'dev')
|
2019-05-01 09:01:51 +00:00
|
|
|
timeoutInMinutes: 180
|
2019-05-01 07:54:48 +00:00
|
|
|
pool:
|
|
|
|
vmImage: 'ubuntu-16.04'
|
|
|
|
strategy:
|
|
|
|
maxParallel: 2
|
|
|
|
matrix:
|
|
|
|
amd64:
|
2019-05-01 08:06:08 +00:00
|
|
|
buildArch: 'amd64'
|
2019-05-01 07:54:48 +00:00
|
|
|
steps:
|
2019-05-01 08:06:08 +00:00
|
|
|
- script: sudo docker pull homeassistant/$(buildArch)-wheels:$(versionWheels)
|
|
|
|
displayName: 'Install wheels builder'
|
2019-05-01 09:01:51 +00:00
|
|
|
- script: |
|
|
|
|
cp requirements_all.txt requirements_hassio.txt
|
|
|
|
|
2019-05-01 09:04:11 +00:00
|
|
|
sed -i "s|# pytradfri|pytradfri|g" requirements_hassio.txt
|
|
|
|
sed -i "s|# pybluez|pybluez|g" requirements_hassio.txt
|
|
|
|
sed -i "s|# bluepy|bluepy|g" requirements_hassio.txt
|
|
|
|
sed -i "s|# beacontools|beacontools|g" requirements_hassio.txt
|
|
|
|
sed -i "s|# RPi.GPIO|RPi.GPIO|g" requirements_hassio.txt
|
|
|
|
sed -i "s|# raspihats|raspihats|g" requirements_hassio.txt
|
|
|
|
sed -i "s|# rpi-rf|rpi-rf|g" requirements_hassio.txt
|
|
|
|
sed -i "s|# blinkt|blinkt|g" requirements_hassio.txt
|
|
|
|
sed -i "s|# fritzconnection|fritzconnection|g" requirements_hassio.txt
|
|
|
|
sed -i "s|# pyuserinput|pyuserinput|g" requirements_hassio.txt
|
|
|
|
sed -i "s|# evdev|evdev|g" requirements_hassio.txt
|
|
|
|
sed -i "s|# smbus-cffi|smbus-cffi|g" requirements_hassio.txt
|
|
|
|
sed -i "s|# i2csense|i2csense|g" requirements_hassio.txt
|
|
|
|
sed -i "s|# python-eq3bt|python-eq3bt|g" requirements_hassio.txt
|
|
|
|
sed -i "s|# pycups|pycups|g" requirements_hassio.txt
|
|
|
|
sed -i "s|# homekit|homekit|g" requirements_hassio.txt
|
|
|
|
sed -i "s|# decora_wifi|decora_wifi|g" requirements_hassio.txt
|
|
|
|
sed -i "s|# decora|decora|g" requirements_hassio.txt
|
|
|
|
sed -i "s|# PySwitchbot|PySwitchbot|g" requirements_hassio.txt
|
|
|
|
sed -i "s|# pySwitchmate|pySwitchmate|g" requirements_hassio.txt
|
2019-05-01 09:01:51 +00:00
|
|
|
displayName: 'Prepare requirements files for Hass.io'
|
2019-05-01 07:54:48 +00:00
|
|
|
- script: |
|
2019-05-01 08:06:08 +00:00
|
|
|
sudo docker run --rm -v $(pwd):/data:ro \
|
|
|
|
homeassistant/$(buildArch)-wheels:$(versionWheels) \
|
2019-05-01 08:14:51 +00:00
|
|
|
--apk "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;linux-headers;gmp-dev;mpfr-dev;mpc1-dev;ffmpeg-dev" \
|
|
|
|
--index https://wheels.hass.io \
|
2019-05-01 09:01:51 +00:00
|
|
|
--requirement requirements_hassio.txt \
|
2019-05-01 08:14:51 +00:00
|
|
|
--upload rsync \
|
2019-05-01 08:06:08 +00:00
|
|
|
--remote wheels@wheels.hass.io:/opt/wheels
|
2019-05-01 07:54:48 +00:00
|
|
|
displayName: 'Run wheels build'
|