forked from home-assistant/wheels-custom-integrations
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines-wheels.yml
72 lines (64 loc) · 2.3 KB
/
azure-pipelines-wheels.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# https://dev.azure.com/home-assistant
trigger:
batch: true
branches:
include:
- master
paths:
include:
- components/*
pr: none
schedules:
- cron: '0 */4 * * *'
displayName: 'daily builds'
branches:
include:
- master
always: true
resources:
repositories:
- repository: azure
type: github
name: 'home-assistant/ci-azure'
endpoint: 'home-assistant'
jobs:
- template: templates/azp-job-wheels.yaml@azure
parameters:
builderVersion: '1.10.0-3.7-alpine3.10'
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'
builderPip: 'Cython;numpy'
skipBinary: 'aiohttp'
wheelsRequirement: 'requirements.txt'
wheelsConstraint: 'constraints.txt'
wheelsSingle: true
jobName: 'Wheels_python37_alpine3_10'
preBuild:
- script: |
for component in components/*; do
manifest=$(jq --raw-output ".manifest" "${component}")
echo "Process: ${component} -> ${manifest}"
curl -s "${manifest}" | jq --raw-output '.requirements | join("\n")' >> requirements.txt
done
echo "List:"
cat requirements.txt
displayName: 'Prepare requirements files for Home Assistant wheels'
- template: templates/azp-job-wheels.yaml@azure
parameters:
builderVersion: '1.10.0-3.7-alpine3.11'
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'
builderPip: 'Cython;numpy'
skipBinary: 'aiohttp'
wheelsRequirement: 'requirements.txt'
wheelsConstraint: 'constraints.txt'
wheelsSingle: true
jobName: 'Wheels_python37_alpine3_11'
preBuild:
- script: |
for component in components/*; do
manifest=$(jq --raw-output ".manifest" "${component}")
echo "Process: ${component} -> ${manifest}"
curl -s "${manifest}" | jq --raw-output '.requirements | join("\n")' >> requirements.txt
done
echo "List:"
cat requirements.txt
displayName: 'Prepare requirements files for Home Assistant wheels'