Skip to content

Commit

Permalink
Update .travis.yml (appneta#282)
Browse files Browse the repository at this point in the history
* Update .travis.yml

Another attempt at OS X build

* Update .travis.yml

* Update .travis.yml

* Update .travis.yml

* Update .travis.yml

* Update .travis.yml

* Update .travis.yml

* Update .travis.yml
  • Loading branch information
fklassen authored Feb 27, 2017
1 parent c98913a commit 7f7eb95
Showing 1 changed file with 22 additions and 14 deletions.
36 changes: 22 additions & 14 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,39 @@
sudo: required
dist: trusty

os:
- linux
- osx

language: c

compiler:
- gcc
- clang

addons:
apt:
packages:
- libpcap-dev

before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install homebrew/dupes/libpcap; fi

cache:
apt: true

matrix:
include:
- os: osx
osx_image: xcode6.4
compiler: gcc
before_install:
- brew update
- brew install autogen homebrew/dupes/libpcap
- os: osx
osx_image: xcode8.2
compiler: clang
before_install:
- brew update
- brew install autogen
- os: linux
dist: trusty
compiler: gcc
- os: linux
dist: trusty
compiler: clang

script:
- autoreconf -iv > build.log 2>&1 || (cat build.log && exit 1)
- ./configure > build.log 2>&1 || (cat build.log && exit 1)
- ./configure --disable-local-libopts > build.log 2>&1 || (cat build.log && exit 1)
- make > build.log 2>&1 || (cat build.log && exit 1)
- make dist > build.log 2>&1 || (cat build.log && exit 1)
- sudo make test

0 comments on commit 7f7eb95

Please sign in to comment.