Skip to content

Commit

Permalink
[ci] Fix the installation of coveralls on osx
Browse files Browse the repository at this point in the history
  • Loading branch information
tueda committed Jun 27, 2017
1 parent af6b3be commit 178d2ea
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
3 changes: 3 additions & 0 deletions scripts/travis-after_success.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ set -o pipefail

case $CI_TARGET in
*coverage*)
if type pyenv >/dev/null 2>&1; then
eval "$(pyenv init -)"
fi
coveralls --gcov-options '\-lp'
;;
esac
15 changes: 13 additions & 2 deletions scripts/travis-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@
set -eu
set -o pipefail

if [ "x$TRAVIS_OS_NAME" = xlinux ]; then
case $CI_TARGET in
*coverage*)
pip install --user cpp-coveralls
;;
esac

if [ "x$TRAVIS_OS_NAME" = xlinux ]; then
case $CI_TARGET in
*doc*)
# Install TeX Live to "./texlive".
Expand Down Expand Up @@ -68,4 +67,16 @@ if [ "x$TRAVIS_OS_NAME" = xosx ]; then
brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/7a4dabfc1a2acd9f01a1670fde4f0094c4fb6ffa/Formula/valgrind.rb
;;
esac
case $CI_TARGET in
*coverage*)
brew update
brew install pyenv
eval "$(pyenv init -)"
pyenv install 2.7.13
pyenv global 2.7.13
pyenv rehash
pip install cpp-coveralls
pyenv rehash
;;
esac
fi

0 comments on commit 178d2ea

Please sign in to comment.