forked from zlib-ng/zlib-ng
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
140 lines (132 loc) · 4.46 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
138
139
140
language: c
cache: ccache
dist: trusty
matrix:
include:
- os: linux
compiler: gcc
env: BUILDDIR=. TOOL="./configure --warn"
- os: linux
compiler: gcc
env: BUILDDIR=. TOOL="cmake . -DZLIB_COMPAT=OFF -DWITH_GZFILEOP=ON -DWITH_NEW_STRATEGIES=YES -DWITH_OPTIM=ON"
- os: linux
compiler: gcc
env: BUILDDIR=../build TOOL="../zlib-ng/configure --warn --zlib-compat"
- os: linux
compiler: gcc
env: BUILDDIR=. TOOL="./configure --warn --zlib-compat --without-optimizations --without-new-strategies"
- os: linux
compiler: gcc
env: BUILDDIR=. TOOL="cmake ."
- os: linux
compiler: gcc
env: BUILDDIR=../build TOOL="cmake ../zlib-ng"
- os: linux
compiler: clang
env: BUILDDIR=. TOOL="./configure --warn --zlib-compat"
- os: linux
compiler: clang
env: BUILDDIR=../build TOOL="cmake ../zlib-ng"
- os: osx
compiler: gcc
env: BUILDDIR=. TOOL="./configure --warn --zlib-compat"
- os: osx
compiler: gcc
env: BUILDDIR=../build TOOL="../zlib-ng/configure --warn --zlib-compat"
- os: osx
compiler: gcc
env: BUILDDIR=. TOOL="cmake ."
- os: osx
compiler: clang
env: BUILDDIR=. TOOL="./configure --warn --zlib-compat"
- os: osx
compiler: clang
env: BUILDDIR=../build TOOL="cmake ../zlib-ng"
# compiling for linux-ppc64le variants
- os: linux-ppc64le
compiler: gcc
env: BUILDDIR=. TOOL="cmake ."
- os: linux-ppc64le
compiler: gcc
env: BUILDDIR=../build TOOL="cmake ../zlib-ng"
- os: linux-ppc64le
compiler: clang
env: BUILDDIR=. TOOL="./configure --warn --zlib-compat"
- os: linux-ppc64le
compiler: clang
env: BUILDDIR=../build TOOL="cmake ../zlib-ng"
# Cross compiling for arm variants
- os: linux
compiler: aarch64-linux-gnu-gcc
addons:
apt:
packages:
- qemu
- gcc-aarch64-linux-gnu
- libc-dev-arm64-cross
# For all aarch64 implementations NEON is mandatory, while crypto/crc are not.
# So for aarch64 NEON should be automatically enabled, and "acle" should be explicitly defined
env: CHOST=aarch64-linux-gnu BUILDDIR=. TOOL="./configure --warn --zlib-compat"
- os: linux
compiler: aarch64-linux-gnu-gcc
addons:
apt:
packages:
- qemu
- gcc-aarch64-linux-gnu
- libc-dev-arm64-cross
# AArch64 toolchain in Trusty is 4.8.2, which doesn't support acle intrinsics.
# Until TravisCI provides Xenial dist (which comes with gcc-aarch64-5.3.1) 'acle' option cannot
# be enabled in subset. But the command
# "CHOST=aarch64-linux-gnu ./configure --warn --zlib-compat --acle"
# should work if manually test it in a dist with gcc-aarch64 5.1 or higher
# env: CHOST=aarch64-linux-gnu BUILDDIR=. TOOL="./configure --warn --zlib-compat --acle"
env: CHOST=aarch64-linux-gnu BUILDDIR=. TOOL="./configure --warn --zlib-compat"
# Hard-float subsets
- os: linux
compiler: arm-linux-gnueabihf-gcc
addons:
apt:
packages:
- qemu
- gcc-arm-linux-gnueabihf
- libc-dev-armhf-cross
env: CHOST=arm-linux-gnueabihf BUILDDIR=. TOOL="./configure --warn"
- os: linux
compiler: arm-linux-gnueabihf-gcc
addons:
apt:
packages:
- qemu
- gcc-arm-linux-gnueabihf
- libc-dev-armhf-cross
env: CHOST=arm-linux-gnueabihf BUILDDIR=. TOOL="./configure --warn --zlib-compat --neon"
- os: linux
compiler: arm-linux-gnueabihf-gcc
addons:
apt:
packages:
- qemu
- gcc-arm-linux-gnueabihf
- libc-dev-armhf-cross
env: CHOST=arm-linux-gnueabihf BUILDDIR=. TOOL="./configure --warn --zlib-compat"
# Soft-float subset
- os: linux
compiler: arm-linux-gnueabi-gcc
addons:
apt:
packages:
- qemu
- gcc-arm-linux-gnueabi
- libc-dev-armel-cross
env: CHOST=arm-linux-gnueabi BUILDDIR=. TOOL="./configure"
- os: linux
compiler: arm-linux-gnueabi-gcc
addons:
apt:
packages:
- qemu
- gcc-arm-linux-gnueabi
- libc-dev-armel-cross
env: CHOST=arm-linux-gnueabi BUILDDIR=. TOOL="./configure --zlib-compat"
script: mkdir -p $BUILDDIR && cd $BUILDDIR && $TOOL && make -j2 && make test