Add Travis support for Mac OS Mojave

This commit is contained in:
tangxifan 2019-04-10 11:51:12 +08:00
parent cb34ac0243
commit b330fb4bb7
1 changed files with 67 additions and 41 deletions

View File

@ -1,8 +1,22 @@
language: cpp
#dist: trusty
# Currently sudo is not required, NO ENV is used
sudo: false
addons:
# Supported Operating systems
#os:
# - linux
# - osx
# Create a matrix to branch the building environment
matrix:
allow_failures:
- os: osx
#dist: trusty
include:
- os: linux
# Compiler is specified in ./travis/common.sh
compiler: g++-4.9
addons:
apt:
sources:
- ubuntu-toolchain-r-test # For newer GCC
@ -39,10 +53,22 @@ addons:
- valgrind
- zip
- qt5-default
# Compiler
compiler:
- gcc
- os: osx
osx_image: xcode10.2 # we target latest MacOS Mojave
compiler: clang++ # Use clang instead of gcc in MacOS
addons:
homebrew:
packages:
- bison
- cmake
- ctags
- flex
- fontconfig
- git
- gcc@6
- gcc@4.9
- libxml++
- qt5
before_install: