mirror of
https://github.com/google/googletest.git
synced 2024-12-29 03:33:40 +08:00
9df5475b82
This will help ensure that test coverage isn't missed when changes that can impact OSX with clang are submitted. Although not perfect, testing changes on OSX with clang is an ok proxy [for now] for testing changes on FreeBSD with clang (testing on FreeBSD is non-trivial, as Travis CI doesn't support operating systems other than Linux and OSX). In order to support this, install the packages via homebrew using a `addons::homebrew::packages` block (similar to `addons::apt::packages` for Ubuntu), as documented in the Travis CI docs ( https://docs.travis-ci.com/user/installing-dependencies/ ). While here, try pushing apt* calls into the Travis config for Ubuntu, instead of delaying the equivalent calls in the `ci/*.sh` scripts. Keep the `ci/*.sh` scripts for ease of testing locally (and extend the OSX one to install gcc 4.9 and llvm 3.9, like the travis config does). In order to accomodate this change (and because the homebrew package for llvm@3.9 doesn't automatically add clang*-3.9 to `$PATH`), `$PATH` needs to be adjusted to find the llvm@3.9 toolchain. Signed-off-by: Enji Cooper <yaneurabeya@gmail.com>
86 lines
2.7 KiB
YAML
86 lines
2.7 KiB
YAML
# Build matrix / environment variable are explained on:
|
|
# https://docs.travis-ci.com/user/customizing-the-build/
|
|
# This file can be validated on:
|
|
# http://lint.travis-ci.org/
|
|
|
|
sudo: false
|
|
language: cpp
|
|
|
|
# Define the matrix explicitly, manually expanding the combinations of (os, compiler, env).
|
|
# It is more tedious, but grants us far more flexibility.
|
|
matrix:
|
|
include:
|
|
- os: linux
|
|
dist: trusty
|
|
sudo: required
|
|
group: deprecated-2017Q3
|
|
before_install: chmod -R +x ./ci/*platformio.sh
|
|
install: ./ci/install-platformio.sh
|
|
script: ./ci/build-platformio.sh
|
|
- os: linux
|
|
compiler: gcc
|
|
sudo : true
|
|
install: ./ci/install-linux.sh && ./ci/log-config.sh
|
|
script: ./ci/build-linux-bazel.sh
|
|
- os: linux
|
|
compiler: clang
|
|
sudo : true
|
|
install: ./ci/install-linux.sh && ./ci/log-config.sh
|
|
script: ./ci/build-linux-bazel.sh
|
|
- os: linux
|
|
group: deprecated-2017Q4
|
|
compiler: gcc
|
|
install: ./ci/install-linux.sh && ./ci/log-config.sh
|
|
script: ./ci/build-linux-autotools.sh
|
|
env: VERBOSE=1 CXXFLAGS=-std=c++11
|
|
- os: linux
|
|
group: deprecated-2017Q4
|
|
compiler: gcc
|
|
env: BUILD_TYPE=Debug VERBOSE=1 CXX_FLAGS=-std=c++11
|
|
- os: linux
|
|
group: deprecated-2017Q4
|
|
compiler: clang
|
|
env: BUILD_TYPE=Release VERBOSE=1 CXX_FLAGS=-std=c++11
|
|
- os: linux
|
|
compiler: clang
|
|
env: BUILD_TYPE=Release VERBOSE=1 CXX_FLAGS=-std=c++11 NO_EXCEPTION=ON NO_RTTI=ON COMPILER_IS_GNUCXX=ON
|
|
- os: osx
|
|
compiler: gcc
|
|
env: BUILD_TYPE=Release VERBOSE=1 CXX_FLAGS=-std=c++11 HOMEBREW_LOGS=~/homebrew-logs HOMEBREW_TEMP=~/homebrew-temp
|
|
- os: osx
|
|
compiler: clang
|
|
env: BUILD_TYPE=Release VERBOSE=1 CXX_FLAGS=-std=c++11 HOMEBREW_LOGS=~/homebrew-logs HOMEBREW_TEMP=~/homebrew-temp
|
|
|
|
# These are the install and build (script) phases for the most common entries in the matrix. They could be included
|
|
# in each entry in the matrix, but that is just repetitive.
|
|
install:
|
|
- ./ci/install-${TRAVIS_OS_NAME}.sh
|
|
- . ./ci/env-${TRAVIS_OS_NAME}.sh
|
|
- ./ci/log-config.sh
|
|
|
|
script: ./ci/travis.sh
|
|
|
|
# For sudo=false builds this section installs the necessary dependencies.
|
|
addons:
|
|
apt:
|
|
# List of whitelisted in travis packages for ubuntu-precise can be found here:
|
|
# https://github.com/travis-ci/apt-package-whitelist/blob/master/ubuntu-precise
|
|
# List of whitelisted in travis apt-sources:
|
|
# https://github.com/travis-ci/apt-source-whitelist/blob/master/ubuntu.json
|
|
sources:
|
|
- ubuntu-toolchain-r-test
|
|
- llvm-toolchain-precise-3.9
|
|
packages:
|
|
- g++-4.9
|
|
- clang-3.9
|
|
update: true
|
|
homebrew:
|
|
packages:
|
|
- ccache
|
|
- gcc@4.9
|
|
- llvm@3.9
|
|
update: true
|
|
|
|
notifications:
|
|
email: false
|