Add osx support for Travis CI

This commit is contained in:
Alexander Zakharov 2017-10-04 22:40:21 +03:00
parent ed7e43818f
commit 168566109c

View File

@ -1,14 +1,27 @@
dist: trusty matrix:
include:
- os: linux
dist: trusty
sudo: required
compiler: gcc
- os: osx
osx_image: xcode7.3
compiler: clang
language: c language: c
compiler: gcc
notifications: notifications:
slack: rdesktop:RZWCtYeVc9qVzsBvTzQtmyLt slack: rdesktop:RZWCtYeVc9qVzsBvTzQtmyLt
before_install: before_install:
- sudo apt-get -qq update - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update ; fi
- sudo apt-get install -y libpcsclite-dev libxcursor-dev libao-dev libasound2-dev - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install 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 libpcsclite-dev libxcursor-dev libao-dev libasound2-dev ; fi
script: ./bootstrap && ./configure && make script:
- ./bootstrap
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then PKG_CONFIG_PATH=/opt/X11/lib/pkgconfig ./configure --with-openssl=/usr/local/opt/openssl ; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then ./configure ; fi
- make