Skip to content

Commit 335e8bd

Browse files
committed
Merge pull request #1280 from jsquyres/pr/travis
PR for travis
2 parents d827da5 + f8722a9 commit 335e8bd

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.travis.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff 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).
18
sudo: required
29
dist: trusty
310
language: c
11+
12+
# Iterate over 2 different compilers
413
compiler:
514
- gcc
615
- clang
16+
17+
# Iterate over 2 different OSs
718
os:
819
- linux
920
- osx
1021

1122
addons:
23+
# For Linux, make sure we have some extra packages that we like to
24+
# build with
1225
apt:
1326
packages:
1427
- autoconf
@@ -37,6 +50,9 @@ before_install:
3750
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then git clone https://github.com/ofiwg/libfabric.git ; fi
3851
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then cd libfabric && ./autogen.sh && ./configure --prefix=$HOME/bogus --enable-usnic --disable-verbs && make install && cd .. ; fi
3952

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.
4056
install:
4157
- m4 --version
4258
- autoconf --version
@@ -46,5 +62,7 @@ install:
4662
- if [[ "$TRAVIS_OS_NAME" == "linux" && "$CC" == "gcc" ]]; then ./configure $CONFIGURE_ARGS --with-libfabric=$HOME/bogus --with-usnic --with-verbs; else ./configure $CONFIGURE_ARGS; fi
4763
- make -k
4864

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).
4967
script:
5068
- if [[ "$TRAVIS_OS_NAME" == "linux" && "$CC" == "gcc" ]]; then make distcheck; else make check; fi

0 commit comments

Comments
 (0)