This repository has been archived by the owner on Jan 9, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 34
/
.travis.yml
198 lines (181 loc) · 6.28 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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
# .travis.yml --
#
# Travis CI configuration for Vicare Scheme.
# About compiler packages. We select build by build the packages to
# install; it should speed up preparation. By putting a single "addons"
# key at the top level: we would cause all the compilers to be installed
# for all the builds in the matrix; we do not want this.
# About compiler selection. We select the compiler we want with the
# "compiler" key. This should set the environment variable CC to the
# associated compiler executable; I have verified that it actually does
# so when the language is C. I am not sure that it actually does it
# when the language is C++. (Marco Maggi; May 27, 2017)
# About dependency packages. We install dependency packages under
# "/tmp/mine". So we need the following in every script that needs
# custom dependencies:
#
# export PATH=/tmp/mine/bin:$PATH;
# export LD_LIBRARY_PATH=/tmp/mine/lib:$LD_LIBRARY_PATH;
# export PKG_CONFIG_PATH=/tmp/mine/lib/pkgconfig:$PKG_CONFIG_PATH;
#
# otherwise the installed packages will not be found and used correctly.
sudo: false
language: c
# Let's just look at the project's dashboard at Travis CI's site.
#
notifications:
email: false
# We do no git operations, so set this to the minimum.
#
git:
depth: 1
branches:
only:
- master
env:
global:
- MAKEFLAGS="-j 2"
matrix:
allow_failures:
- os: osx
fast_finish: true
include:
# Plain build under Ubuntu GNU+Linux "trusty", GCC 5.
- os: linux
dist: trusty
compiler: gcc-5
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- texinfo
- gcc-5
install:
- ./meta/travis-ci/install-libffi.sh
script: |
#echo CC=$CC; $CC --version;
export PATH=/tmp/mine/bin:$PATH;
export LD_LIBRARY_PATH=/tmp/mine/lib:$LD_LIBRARY_PATH;
export PKG_CONFIG_PATH=/tmp/mine/lib/pkgconfig:$PKG_CONFIG_PATH;
export LIBFFI_VERSION=3.2.1;
export LIBFFI_INCLUDEDIR=${libdir}/libffi-${LIBFFI_VERSION}/include;
export TMPDIR=/tmp;
sh ./autogen.sh;
./configure --enable-maintainer-mode --with-pthread CPPFLAGS="-I${LIBFFI_INCLUDEDIR}";
make all;
make check;
# Plain build under Ubuntu GNU+Linux "trusty", GCC 6.
- os: linux
dist: trusty
compiler: gcc-6
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- texinfo
- gcc-6
install:
- ./meta/travis-ci/install-libffi.sh
script: |
#echo CC=$CC; $CC --version;
export PATH=/tmp/mine/bin:$PATH;
export LD_LIBRARY_PATH=/tmp/mine/lib:$LD_LIBRARY_PATH;
export PKG_CONFIG_PATH=/tmp/mine/lib/pkgconfig:$PKG_CONFIG_PATH;
export LIBFFI_VERSION=3.2.1;
export LIBFFI_INCLUDEDIR=${libdir}/libffi-${LIBFFI_VERSION}/include;
export TMPDIR=/tmp;
sh ./autogen.sh;
./configure --enable-maintainer-mode --with-pthread CPPFLAGS="-I${LIBFFI_INCLUDEDIR}";
make all;
make check;
# Plain build under Ubuntu GNU+Linux "trusty", GCC 7.
- os: linux
dist: trusty
compiler: gcc-7
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- texinfo
- gcc-7
install:
- ./meta/travis-ci/install-libffi.sh
script: |
#echo CC=$CC; $CC --version;
export PATH=/tmp/mine/bin:$PATH;
export LD_LIBRARY_PATH=/tmp/mine/lib:$LD_LIBRARY_PATH;
export PKG_CONFIG_PATH=/tmp/mine/lib/pkgconfig:$PKG_CONFIG_PATH;
export LIBFFI_VERSION=3.2.1;
export LIBFFI_INCLUDEDIR=${libdir}/libffi-${LIBFFI_VERSION}/include;
export TMPDIR=/tmp;
sh ./autogen.sh;
./configure --enable-maintainer-mode --with-pthread CPPFLAGS="-I${LIBFFI_INCLUDEDIR}";
make all;
make check;
# Plain build under Ubuntu GNU+Linux "trusty", CLang automatically
# selected by Travis CI.
- os: linux
dist: trusty
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- texinfo
compiler: clang
install:
- ./meta/travis-ci/install-libffi.sh
script: |
#echo CC=$CC; $CC --version;
export PATH=/tmp/mine/bin:$PATH;
export LD_LIBRARY_PATH=/tmp/mine/lib:$LD_LIBRARY_PATH;
export PKG_CONFIG_PATH=/tmp/mine/lib/pkgconfig:$PKG_CONFIG_PATH;
export LIBFFI_VERSION=3.2.1;
export LIBFFI_INCLUDEDIR=${libdir}/libffi-${LIBFFI_VERSION}/include;
export TMPDIR=/tmp;
sh ./autogen.sh;
./configure --enable-maintainer-mode --with-pthread CPPFLAGS="-I${LIBFFI_INCLUDEDIR}";
make all;
make check;
# Plain build under OS X, XCode 7.3, CLang automatically selected by
# Travis CI.
- os: osx
osx_image: xcode7.3
compiler: clang
install:
- ./meta/travis-ci/install-libffi.sh
script: |
#echo CC=$CC; $CC --version;
export PATH=/tmp/mine/bin:$PATH;
export LD_LIBRARY_PATH=/tmp/mine/lib:$LD_LIBRARY_PATH;
export PKG_CONFIG_PATH=/tmp/mine/lib/pkgconfig:$PKG_CONFIG_PATH;
export LIBFFI_VERSION=3.2.1;
export LIBFFI_INCLUDEDIR=${libdir}/libffi-${LIBFFI_VERSION}/include;
export TMPDIR=/tmp;
LIBTOOLIZE=glibtoolize sh ./autogen.sh;
./configure --enable-maintainer-mode --with-pthread CPPFLAGS="-I${LIBFFI_INCLUDEDIR}";
make all;
make check;
# Plain build under OS X, XCode 8.3, CLang automatically selected by
# Travis CI.
- os: osx
osx_image: xcode8.3
compiler: clang
install:
- ./meta/travis-ci/install-libffi.sh
script: |
#echo CC=$CC; $CC --version;
export PATH=/tmp/mine/bin:$PATH;
export LD_LIBRARY_PATH=/tmp/mine/lib:$LD_LIBRARY_PATH;
export PKG_CONFIG_PATH=/tmp/mine/lib/pkgconfig:$PKG_CONFIG_PATH;
export LIBFFI_VERSION=3.2.1;
export LIBFFI_INCLUDEDIR=${libdir}/libffi-${LIBFFI_VERSION}/include;
export TMPDIR=/tmp;
LIBTOOLIZE=glibtoolize sh ./autogen.sh;
./configure --enable-maintainer-mode --with-pthread CPPFLAGS="-I${LIBFFI_INCLUDEDIR}";
make all;
make check;
### end of file