Skip to content

Commit

Permalink
Update Travis.yml to build on osx as well as linux
Browse files Browse the repository at this point in the history
  • Loading branch information
xdesai committed Jul 21, 2017
1 parent e3c449d commit 5bbf592
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,22 @@
language: c
sudo: required
dist: trusty
os:
- linux
- osx
compiler:
- clang
- gcc
before_install:
- sudo apt-get -qq update
- sudo apt-get install -y libpam-dev
- sudo apt-get install -y automake
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install openssl; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export OS_SPECIFIC_ARGS="--with-openssl=/usr/local/opt/openssl"; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get -qq update; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install -y libpam-dev; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install -y automake; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export OS_SPECIFIC_ARGS=""; fi
script:
- ./bootstrap
- ./configure --with-pam --prefix=/usr
- ./configure --with-pam --prefix=/usr $OS_SPECIFIC_ARGS
- make
- make check

0 comments on commit 5bbf592

Please sign in to comment.