From b330fb4bb7878f6753e5a6b4aad3c449224548aa Mon Sep 17 00:00:00 2001 From: tangxifan Date: Wed, 10 Apr 2019 11:51:12 +0800 Subject: [PATCH] Add Travis support for Mac OS Mojave --- .travis.yml | 108 ++++++++++++++++++++++++++++++++-------------------- 1 file changed, 67 insertions(+), 41 deletions(-) diff --git a/.travis.yml b/.travis.yml index c784dbe85..5bab08505 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,48 +1,74 @@ language: cpp -#dist: trusty +# Currently sudo is not required, NO ENV is used sudo: false -addons: - apt: - sources: - - ubuntu-toolchain-r-test # For newer GCC - - george-edison55-precise-backports # For cmake - packages: - - autoconf - - automake - - bash - - bison - - build-essential - - cmake - - ctags - - curl - - doxygen - - flex - - fontconfig - - g++-4.9 - - gcc-4.9 - - gdb - - git - - gperf - - libcairo2-dev - - libevent-dev - - libfontconfig1-dev - - liblist-moreutils-perl - - libncurses5-dev - - libx11-dev - - libxft-dev - - libxml++2.6-dev - - perl - - python - - texinfo - - time - - valgrind - - zip - - qt5-default -# Compiler -compiler: - - gcc +# 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 + - george-edison55-precise-backports # For cmake + packages: + - autoconf + - automake + - bash + - bison + - build-essential + - cmake + - ctags + - curl + - doxygen + - flex + - fontconfig + - g++-4.9 + - gcc-4.9 + - gdb + - git + - gperf + - libcairo2-dev + - libevent-dev + - libfontconfig1-dev + - liblist-moreutils-perl + - libncurses5-dev + - libx11-dev + - libxft-dev + - libxml++2.6-dev + - perl + - python + - texinfo + - time + - valgrind + - zip + - qt5-default + - 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: