You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .travis.yml
+18Lines changed: 18 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,27 @@
1
+
# Use "required" for sudo, because we want to use the "trusty" Debian
2
+
# distro, which is (currently) only available in the legacy Travis
3
+
# infrastructure (i.e., if we put "sudo: false" to use the new container-
4
+
# based Travis infrastructure, then "trusty" is not available). We
5
+
# need the "trusty" distro because it has more recent versions of the
6
+
# GNU Autotools (i.e., autogen.pl will fail if you use the regular
7
+
# distro because the GNU Autotools are too old).
1
8
sudo: required
2
9
dist: trusty
3
10
language: c
11
+
12
+
# Iterate over 2 different compilers
4
13
compiler:
5
14
- gcc
6
15
- clang
16
+
17
+
# Iterate over 2 different OSs
7
18
os:
8
19
- linux
9
20
- osx
10
21
11
22
addons:
23
+
# For Linux, make sure we have some extra packages that we like to
24
+
# build with
12
25
apt:
13
26
packages:
14
27
- autoconf
@@ -37,6 +50,9 @@ before_install:
37
50
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then git clone https://github.com/ofiwg/libfabric.git ; fi
38
51
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then cd libfabric && ./autogen.sh && ./configure --prefix=$HOME/bogus --enable-usnic --disable-verbs && make install && cd .. ; fi
39
52
53
+
# Note that we use "make -k" to do the entire build, even if there was a
54
+
# build error in there somewhere. This prevents us from needing to submit
55
+
# to Travis, see the first error, fix that first error, submit again, ...etc.
40
56
install:
41
57
- m4 --version
42
58
- autoconf --version
@@ -46,5 +62,7 @@ install:
46
62
- if [[ "$TRAVIS_OS_NAME" == "linux" && "$CC" == "gcc" ]]; then ./configure $CONFIGURE_ARGS --with-libfabric=$HOME/bogus --with-usnic --with-verbs; else ./configure $CONFIGURE_ARGS; fi
47
63
- make -k
48
64
65
+
# We only need to distcheck on one OS / compiler combination (this is just
66
+
# a minor optimization to make the overall set of builds faster).
49
67
script:
50
68
- if [[ "$TRAVIS_OS_NAME" == "linux" && "$CC" == "gcc" ]]; then make distcheck; else make check; fi
0 commit comments