You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
compiler:
- gcc
- clang
env:
- GCC_VERSION=5
- GCC_VERSION=6
script:
- if [[ "${TRAVIS_OS_NAME}" == 'linux' && "${CXX}" == 'clang++' ]]; then
export MYSQL_BUILD_CC=/usr/bin/clang-3.8 MYSQL_BUILD_CXX=/usr/bin/clang++-3.8;
fi
- if [[ "${TRAVIS_OS_NAME}" == 'linux' && "${CXX}" == 'g++' ]]; then
export MYSQL_BUILD_CC=/usr/bin/gcc-${GCC_VERSION} MYSQL_BUILD_CXX=/usr/bin/g++-${GCC_VERSION};
fi
- ....
I'm trying to work out how to set CACHE_NAME so each GCC version gets a unique name. This is to solve the problem that the builds are concurrent and will override each others ccache rather than aggregating them or separating them.
Names and values of visible environment variables set in .travis.yml or Settings panel
In other words, the difference in GCC_VERSION is enough to make the two caches go to different places.
CACHE_NAME is meant to provide a different cache name when all other factors are equal (even when CACHE_NAME does not affect the build in any way). In your use case, then, CACHE_NAME (or any other environment variable) is not necessary.
Uh oh!
There was an error while loading. Please reload this page.
I'm compiling with multiple gcc version like:
I'm trying to work out how to set CACHE_NAME so each GCC version gets a unique name. This is to solve the problem that the builds are concurrent and will override each others ccache rather than aggregating them or separating them.
As the cache is retrieved before the
before_install
phase (https://docs.travis-ci.com/user/customizing-the-build/#The-Build-Lifecycle) it can't be scripted.The following did appear to work.
Is this how CACHE_NAME meant to be used?
The text was updated successfully, but these errors were encountered: