From: Azat Khuzhin Date: Mon, 28 Jan 2019 17:30:57 +0000 (+0300) Subject: travis-ci/osx: install gcc and fix CC X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9432fa2ec62d209ff71a04a3163a41af1b0b3828;p=libevent travis-ci/osx: install gcc and fix CC Since there is no gcc in osx_image [1]: ls: /usr/local/bin/gcc-?.?: No such file or directory [1]: https://travis-ci.org/libevent/libevent/jobs/484794192#L95 And use ls(1) over echo(1) to show an error if there is no such file. --- diff --git a/.travis.yml b/.travis.yml index a25b78ff..946de8a1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -50,7 +50,7 @@ before_install: - export TIMEOUT=50 - if [ "$TRAVIS_OS_NAME" == "osx" ]; then if [ "$CC" == "gcc" ]; then - export CC=$(ls -t /usr/local/bin/gcc-?.?); + export CC=$(ls /usr/local/Cellar/gcc/*/bin/gcc-?); fi export OPENSSL_ROOT=$(echo /usr/local/Cellar/openssl/*); @@ -82,6 +82,7 @@ addons: - openssl - lcov - libtool + - gcc script: