travis-ci: speedup osx build by enabling brew cache
PATCH 1/1 travis-ci: speedup osx build by enabling brew cache
1-2 minutes speedup by using brew cache, also ccache is no more disabled for osx build (even it does not speedup significantly, it simplifies the overall script)
---
this is a "v2" of previously issued "enable ccache for osx and mingw builds" patch. I decided not to enable ccache for mingw builds as it does not speedup them
.travis.yml | 5 +++-- .travis/build-deps.sh | 7 ++----- 2 files changed, 5 insertions(+), 7 deletions(-)
.travis.yml +3 -2
@@ -82,10 +82,11 @@ cache: directories: - download-cache - ${HOME}/opt + - ${HOME}/Library/Caches/Homebrew before_install: - - if [ "${TRAVIS_OS_NAME}" = "osx" ]; then brew update ; fi - - if [ "${TRAVIS_OS_NAME}" = "osx" ]; then brew install lzo; fi + - if [ "${TRAVIS_OS_NAME}" = "osx" ]; then brew update ; fi + - if [ "${TRAVIS_OS_NAME}" = "osx" ]; then brew install lzo ccache; fi install: - if [ ! -z "${CHOST}" ]; then unset CC; fi
.travis/build-deps.sh +2 -5
@@ -130,11 +130,8 @@ build_openssl () { fi } -# Enable ccache -if [ "${TRAVIS_OS_NAME}" != "osx" ] && [ -z ${CHOST+x} ]; then - # ccache not available on osx, see: - # https://github.com/travis-ci/travis-ci/issues/5567 - # also ccache not enabled for cross builds +# Enable ccache except cross builds +if [ -z ${CHOST+x} ]; then mkdir -p "${HOME}/bin" ln -s "$(which ccache)" "${HOME}/bin/${CC}" PATH="${HOME}/bin:${PATH}"
Signature · 1 line
2.14.3
wait a bit,
we might need to remove ccache (it became broken after travis-ci upgraded to clang-5)
https://travis-ci.org/chipitsine/openvpn/jobs/325002858
2018-01-04 17:19 GMT+05:00 Ilya Shipitsin <[email protected]...>:
Quoted 54 lines
1-2 minutes speedup by using brew cache, also ccache is no more disabled for osx build (even it does not speedup significantly, it simplifies the overall script)
---
this is a "v2" of previously issued "enable ccache for osx and mingw builds"
patch. I decided not to enable ccache for mingw builds as it does not speedup them.travis.yml | 5 +++-- .travis/build-deps.sh | 7 ++----- 2 files changed, 5 insertions(+), 7 deletions(-).travis.yml +3
-2@@ -82,10 +82,11 @@ cache: directories: - download-cache - ${HOME}/opt + - ${HOME}/Library/Caches/Homebrew before_install: - - if [ "${TRAVIS_OS_NAME}" = "osx" ]; then brew update ; fi - - if [ "${TRAVIS_OS_NAME}" = "osx" ]; then brew install lzo; fi + - if [ "${TRAVIS_OS_NAME}" = "osx" ]; then brew update ; fi + - if [ "${TRAVIS_OS_NAME}" = "osx" ]; then brew install lzo ccache; fi install: - if [ ! -z "${CHOST}" ]; then unset CC; fi.travis/build-deps.sh +2
-6@@ -130,11 +130,8 @@ build_openssl () { fi } -# Enable ccache -if [ "${TRAVIS_OS_NAME}" != "osx" ] && [ -z ${CHOST+x} ]; then - # ccache not available on osx, see: - # https://github.com/travis-ci/travis-ci/issues/5567 - # also ccache not enabled for cross builds +# Enable ccache except cross builds +if [ -z ${CHOST+x} ]; then mkdir -p "${HOME}/bin" ln -s "$(which ccache)" "${HOME}/bin/${CC}" PATH="${HOME}/bin:${PATH}" --2.14.3