From 823b9227128733abd14e4214c9758fd71eddb5ea Mon Sep 17 00:00:00 2001 From: Martin Rotter Date: Wed, 24 Aug 2016 10:06:45 +0200 Subject: [PATCH] macosx travis. --- .travis-before-install.sh | 11 +++++++++++ .travis.yml | 9 ++++----- 2 files changed, 15 insertions(+), 5 deletions(-) create mode 100755 .travis-before-install.sh diff --git a/.travis-before-install.sh b/.travis-before-install.sh new file mode 100755 index 000000000..e0a7f4f24 --- /dev/null +++ b/.travis-before-install.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +if [[ $TRAVIS_OS_NAME == 'osx' ]]; then + # Mac OS X. + brew update + brew install https://raw.githubusercontent.com/LRFLEW/homebrew-core/981fa2e8f824b068077e7df47f81bdb8d93a8ea1/Formula/qt5.rb +else + # Linux. + sudo apt-get update + sudo apt-get -y install qt57tools qt57base qt57webengine +fi \ No newline at end of file diff --git a/.travis.yml b/.travis.yml index 909598782..7f5119d94 100755 --- a/.travis.yml +++ b/.travis.yml @@ -1,10 +1,11 @@ dist: trusty - language: cpp +osx_image: xcode8 os: - linux - + - osx + compiler: - gcc @@ -13,9 +14,7 @@ git: depth: 3 before_install: - - sudo add-apt-repository ppa:beineri/opt-qt57-trusty -y - - sudo apt-get update - - sudo apt-get -y install qt57tools qt57base qt57webengine + - ./.travis-before-install.sh install: true