diff --git a/.travis.yml b/.travis.yml index 38849dae4..c02be9e06 100644 --- a/.travis.yml +++ b/.travis.yml @@ -20,6 +20,10 @@ branches: only: - master +os: + - linux + - osx + osx_image: xcode8.3 env: @@ -50,9 +54,6 @@ script: - export COVERALLS_SERVICE_NAME=travis-ci - export COVERALLS_REPO_TOKEN=abc12345 - . ./.travis.sh -os: - - linux - - osx after_success: - if [ "$TRAVIS_OS_NAME" = "linux" ]; then cd ${TRAVIS_BUILD_DIR} && lcov --directory . --capture --output-file coverage.info && lcov --remove coverage.info '/usr/*' 'contrib/*' 'test/*' --output-file coverage.info && lcov --list coverage.info && coveralls-lcov --source-encoding=ISO-8859-1 --repo-token=${COVERALLS_TOKEN} coverage.info ; fi