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