From bd50aa5a39e22f2d21e950f60bbf27bf7ddfd38f Mon Sep 17 00:00:00 2001 From: Vassil Vassilev Date: Sun, 5 Nov 2017 19:34:43 +0100 Subject: [PATCH] Add OSX builds. --- .travis.yml | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) diff --git a/.travis.yml b/.travis.yml index 5569b103..2101a039 100644 --- a/.travis.yml +++ b/.travis.yml @@ -95,6 +95,43 @@ matrix: sources: *sources packages: [*common_deps, 'clang-5.0', 'g++-multilib', 'libc6-dbg'] + # Xcode 7.3 Clang + - env: CXX=clang++ CC=clang + compiler: clang + osx_image: xcode7.3 + os: osx + + # Xcode 8 Clang + - env: CXX=clang++ CC=clang + compiler: clang + osx_image: xcode8 + os: osx + + # Xcode 8.1 Clang + - env: CXX=clang++ CC=clang + compiler: clang + osx_image: xcode8.1 + os: osx + + # Xcode 8.3 Clang + - env: CXX=clang++ CC=clang + compiler: clang + osx_image: xcode8.3 + os: osx + + + # OSX GCC 5 + - env: CXX=g++-5 CC=gcc + compiler: gcc + osx_image: xcode7.3 + os: osx + + # OSX GCC 6 + - env: CXX=g++-6 CC=gcc + compiler: gcc + osx_image: xcode8.3 + os: osx + before_install: - wget https://ecsft.cern.ch/dist/cvmfs/cvmfs-release/cvmfs-release-latest_all.deb - sudo dpkg -i cvmfs-release-latest_all.deb @@ -127,6 +164,26 @@ install: pip install --user --upgrade pip; pip install --user cpp-coveralls; fi + # OSX and GCC + - | + if [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then + brew update + # brew install ccache + # brew install valgrind + # cmake + if brew list -1 | grep -q "^cmake\$"; then + brew outdated cmake || brew upgrade cmake + else + brew install cmake + fi + + # GCC + if [[ "$CC" == "gcc" ]]; then + GCC_VERSION=${CXX##g++-} # Convert g++-4.9 to 4.9 + GCC_VERSION_DEC=${GCC_VERSION//./} # convert 4.9 to 49 + brew install gcc$GCC_VERSION_DEC + fi + fi script: - echo "Downloading Latest ROOT binaries."