macosx travis.

This commit is contained in:
Martin Rotter 2016-08-24 10:06:45 +02:00
parent fe0aaf4db1
commit 823b922712
2 changed files with 15 additions and 5 deletions

11
.travis-before-install.sh Executable file
View File

@ -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

View File

@ -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