forked from basler/pypylon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
137 lines (128 loc) · 4.66 KB
/
.travis.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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
sudo: required
services:
- docker
language: cpp
# It is currently not possible to build manylinux packages for linux arm. Reasons are:
# - The binary dependencies of pylon are newer than specified in manylinux2014
# - There is no manylinux armhf docker container available
# - P=manylinux2014_armv7l A=cp35m
# - P=manylinux2014_armv7l A=cp36m
# - P=manylinux2014_armv7l A=cp37m
# - P=manylinux2014_armv7l A=cp38
# - P=manylinux2014_aarch64 A=cp35m
# - P=manylinux2014_aarch64 A=cp36m
# - P=manylinux2014_aarch64 A=cp37m
# - P=manylinux2014_aarch64 A=cp38
jobs:
include:
# manylinux2014_x86_64
- arch: amd64
env: P=manylinux2014_x86_64 A=cp35m
- arch: amd64
env: P=manylinux2014_x86_64 A=cp36m
- arch: amd64
env: P=manylinux2014_x86_64 A=cp37m
- arch: amd64
env: P=manylinux2014_x86_64 A=cp38
# manylinux2014_i686
- arch: amd64
env: P=manylinux2014_i686 A=cp35m
- arch: amd64
env: P=manylinux2014_i686 A=cp36m
- arch: amd64
env: P=manylinux2014_i686 A=cp37m
- arch: amd64
env: P=manylinux2014_i686 A=cp38
# linux_x86_64
- arch: amd64
env: P=linux_x86_64 A=cp34m
- arch: amd64
env: P=linux_x86_64 A=cp35m
- arch: amd64
env: P=linux_x86_64 A=cp36m
- arch: amd64
env: P=linux_x86_64 A=cp37m
- arch: amd64
env: P=linux_x86_64 A=cp38
# linux_i686
- arch: amd64
env: P=linux_i686 A=cp34m
- arch: amd64
env: P=linux_i686 A=cp35m
- arch: amd64
env: P=linux_i686 A=cp36m
- arch: amd64
env: P=linux_i686 A=cp37m
- arch: amd64
env: P=linux_i686 A=cp38
# linux_armv7l
# armv7l is still build using qemu on x86, because it was not easily possible to build for armv7l (The best was armv8l using linux32 wrapper)
# The tests are disabled for armv7l because installing the required numpy took too long and we hit the maximum allowed travis build time.
- arch: amd64
env: P=linux_armv7l A=cp34m ARGS="--disable-tests"
- arch: amd64
env: P=linux_armv7l A=cp35m ARGS="--disable-tests"
- arch: amd64
env: P=linux_armv7l A=cp36m ARGS="--disable-tests"
- arch: amd64
env: P=linux_armv7l A=cp37m ARGS="--disable-tests"
- arch: amd64
env: P=linux_armv7l A=cp38 ARGS="--disable-tests"
# linux_aarch64
- arch: arm64
env: P=linux_aarch64 A=cp34m
- arch: arm64
env: P=linux_aarch64 A=cp35m
- arch: arm64
env: P=linux_aarch64 A=cp36m
- arch: arm64
env: P=linux_aarch64 A=cp37m
- arch: arm64
env: P=linux_aarch64 A=cp38
allow_failures:
# manylinux fails, because the runtime dependencies of current pylon are higher than manylinux2014.
# The jobs are still kept in here to keep the mechanics alive.
# manylinux2014_x86_64
- arch: amd64
env: P=manylinux2014_x86_64 A=cp35m
- arch: amd64
env: P=manylinux2014_x86_64 A=cp36m
- arch: amd64
env: P=manylinux2014_x86_64 A=cp37m
- arch: amd64
env: P=manylinux2014_x86_64 A=cp38
# manylinux2014_i686
- arch: amd64
env: P=manylinux2014_i686 A=cp35m
- arch: amd64
env: P=manylinux2014_i686 A=cp36m
- arch: amd64
env: P=manylinux2014_i686 A=cp37m
- arch: amd64
env: P=manylinux2014_i686 A=cp38
install:
- cd $TRAVIS_BUILD_DIR
- mkdir pylon_installer && cd pylon_installer
- |
for PYLON_VERSION in 6.1.0.19674_x86 6.1.1.19861_x86_64 6.1.3.20159_armhf 6.1.3.20159_aarch64 ; do
travis_retry curl -sSfL -O "${PYLON_DOWNLOAD_URL_BASE}pylon_${PYLON_VERSION}_setup.tar.gz"
done
- echo "Pylon Installer:" && ls
script:
- cd $TRAVIS_BUILD_DIR
- |
if [ "$TRAVIS_CPU_ARCH" == "amd64" ]; then
docker run --rm --privileged multiarch/qemu-user-static:register --reset
fi
- "./scripts/build/build-arch.sh --platform-tag $P --abi-tag $A --pylon-dir ./pylon_installer $ARGS"
deploy:
provider: releases
skip_cleanup: true
api_key:
secure: R46oPGgeRYe2GB5JLMW8doUQf4lQx1oa+Jvr7HMbZpoVHC/EV37l9wrYLkY3BHLc3DUB6Xnc94Dc0IxEnQ3AV+vuSmDTDqdsEo7KYF+ZRMab+J4XpzLvP7E0QHwslXhCIUraEtTom4UydV5Oh6Zz4KA5utNjE9O7KUHHatcccq7/fP/8M2aZocVkkwOzNfl91tTT1nJXMtf10XGKkdI1O0VwSLkXjihIbPDANx53RWCgJgD3JGwbsDQf3lg6mzaJyx7DJ0BVSZT5tErE32pkLJqXNLsy/RQ1lPu0Ycf1HxrgYqH8NvDu4KxfKw41dcMkp6gN4ELhuVOChkztvxB1QPKHn6SdJL86+ipOZiycdnqvAAg1UD2q9idCDE4KhrD8PBJXme/1qLq578NA2PmXbWEGuHk69N/CNWhg898pFUQb600LhpsT28J7HVxGOrELr/6W0RNuEA0YCemfhDm5CQlFw8GVQ4DdFOM6dMyeeQnuWbXKQow9W0ZH/Hf8cklLfvYRYZxoulHzOF6Ley1MMVO2RHWnkZ078Xatm37El2oHkv1xxr/7Yo8GZyKTzaRKrsemtIFnuCxmK/JKGhKJlgtn6en4PL99X4EjmokjL5dhXSgz6jGb72xK7V+Xo5N6DH5t4p5huHXO8HXd5Sq3jHXD5eOZu5iHiwdrkzcJgkc=
file_glob: true
file: dist/*
on:
repo: basler/pypylon
branch: master
tags: true