forked from duosecurity/duo_unix
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Travis.yml to build on osx as well as linux
- Loading branch information
Showing
1 changed file
with
12 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |