Skip to content

Commit

Permalink
Update travis config
Browse files Browse the repository at this point in the history
- Use Ubuntu trusty for builds
- Add Wall and Werror flags for build
- Add exit on failure setting for scripts.

Signed-off-by: Arun C Ilango <[email protected]>
  • Loading branch information
Arun C Ilango committed Jul 18, 2017
1 parent e705c0d commit b502381
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
dist: trusty
sudo: false
language: c
compiler:
Expand All @@ -7,9 +8,17 @@ os:
- osx
- linux

env:
global:
- CPPFLAGS="-Wall -Werror"
- CFLAGS="-Wall -Werror"

before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; brew upgrade automake || true; brew upgrade libtool || true; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update;
brew upgrade automake || true; brew upgrade libtool || true;
fi
install:
- set -e
- git clone https://github.com/ofiwg/libfabric.git
- cd libfabric
- ./autogen.sh
Expand All @@ -25,4 +34,5 @@ script:
- make
- make install
- make dist
- set +e # Disable exit on failure so that we don't exit when just one test fails
- make test

0 comments on commit b502381

Please sign in to comment.