diff options
author | Karl Schultz <karl@lunarg.com> | 2018-08-09 11:48:49 -0600 |
---|---|---|
committer | Karl Schultz <karl@lunarg.com> | 2018-08-09 17:02:35 -0600 |
commit | b9aad818fcb308e9d1d5ca9da9f58e7655665d36 (patch) | |
tree | f98dbb7a7a6b07b662018f8b1fca2280898ac3e4 /.travis.yml | |
parent | 40c0cba7c7bc09e3c1a6da1fe2ade9b61d1cb391 (diff) | |
download | vulkan-validation-layers-b9aad818fcb308e9d1d5ca9da9f58e7655665d36.tar.gz |
build: travis ccache improvements
- Add a ccache command at the start to zero the cache stats.
This will let us see the stats relative to this single job.
- Move the ccache command to show the stats to the end of the job.
- Wrap some long lines.
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/.travis.yml b/.travis.yml index b86dda965..b0f781ae8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -45,7 +45,8 @@ before_install: if [[ "$VULKAN_BUILD_TARGET" == "LINUX" ]]; then # Install the appropriate Linux packages. sudo apt-get -qq update - sudo apt-get -y install libxkbcommon-dev libwayland-dev libmirclient-dev libxrandr-dev libx11-xcb-dev libxcb-keysyms1 libxcb-keysyms1-dev libxcb-ewmh-dev + sudo apt-get -y install libxkbcommon-dev libwayland-dev libmirclient-dev libxrandr-dev \ + libx11-xcb-dev libxcb-keysyms1 libxcb-keysyms1-dev libxcb-ewmh-dev fi - | if [[ "$VULKAN_BUILD_TARGET" == "ANDROID" ]]; then @@ -60,10 +61,12 @@ before_install: - | if [[ "$CHECK_FORMAT" == "ON" && "$TRAVIS_PULL_REQUEST" != "false" ]]; then # Install the clang format diff tool, but only for pull requests. - curl -L http://llvm.org/svn/llvm-project/cfe/trunk/tools/clang-format/clang-format-diff.py -o scripts/clang-format-diff.py; + curl -L http://llvm.org/svn/llvm-project/cfe/trunk/tools/clang-format/clang-format-diff.py \ + -o scripts/clang-format-diff.py; fi # Misc setup - export core_count=$(nproc || echo 4) && echo core_count = $core_count + - ccache --zero-stats - set +e script: @@ -90,9 +93,9 @@ script: cd ${TRAVIS_BUILD_DIR} mkdir build cd build - cmake -C ${TRAVIS_BUILD_DIR}/external/helper.cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=${TRAVIS_BUILD_DIR}/build/install -DUSE_CCACHE=ON .. + cmake -C ${TRAVIS_BUILD_DIR}/external/helper.cmake -DCMAKE_BUILD_TYPE=Debug \ + -DCMAKE_INSTALL_PREFIX=${TRAVIS_BUILD_DIR}/build/install -DUSE_CCACHE=ON .. cmake --build . --target install -- -j$core_count - ccache --show-stats fi - | if [[ "$VULKAN_BUILD_TARGET" == "LINUX" ]]; then @@ -150,6 +153,7 @@ script: ./scripts/check_commit_message_format.sh fi fi + - ccache --show-stats - set +e notifications: |