Travis: Fix ccache on debug builds (#4741)
This commit is contained in:
parent
104961b889
commit
21ef9e3819
26
.travis.yml
26
.travis.yml
@ -13,42 +13,42 @@ addons:
|
||||
confinement: classic
|
||||
channel: latest
|
||||
|
||||
matrix:
|
||||
jobs:
|
||||
include:
|
||||
# AppleClang Release
|
||||
# OSX workers are slower to start up. Having these first in the build matrix makes travis faster overall.
|
||||
- os: osx
|
||||
- name: "AppleClang - Release"
|
||||
os: osx
|
||||
osx_image: xcode11.3
|
||||
before_install:
|
||||
- HOMEBREW_NO_AUTO_UPDATE=1 brew install ccache
|
||||
env: &Release
|
||||
- TRAVIS_CUBERITE_BUILD_TYPE=RELEASE
|
||||
|
||||
# AppleClang Debug
|
||||
- os: osx
|
||||
- name: "AppleClang - Debug"
|
||||
os: osx
|
||||
osx_image: xcode11.3
|
||||
before_install:
|
||||
- HOMEBREW_NO_AUTO_UPDATE=1 brew install ccache
|
||||
env: &Debug
|
||||
- TRAVIS_CUBERITE_BUILD_TYPE=DEBUG
|
||||
|
||||
# Clang 7.0 - Release
|
||||
- compiler: clang
|
||||
- name: "Clang 7.0 - Release"
|
||||
compiler: clang
|
||||
before_install: &use-cmake
|
||||
- export PATH=/snap/bin/:${PATH}
|
||||
env: *Release
|
||||
|
||||
# Clang 7.0 - Debug
|
||||
- compiler: clang
|
||||
- name: "Clang 7.0 - Debug"
|
||||
compiler: clang
|
||||
before_install: *use-cmake
|
||||
env: *Debug
|
||||
|
||||
# GCC 7.4 - Release, CMake 3.12
|
||||
- compiler: gcc
|
||||
- name: "GCC 7.4 - Release, CMake 3.12"
|
||||
compiler: gcc
|
||||
env: *Release
|
||||
|
||||
# GCC 7.4 - Debug
|
||||
- compiler: gcc
|
||||
- name: "GCC 7.4 - Debug"
|
||||
compiler: gcc
|
||||
before_install: *use-cmake
|
||||
env: *Debug
|
||||
|
||||
|
@ -11,16 +11,24 @@ if [ `which ccache` ]; then
|
||||
export CCACHE_CPP2=true
|
||||
CACHE_ARGS="-DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache"
|
||||
echo "Using ccache installed at $(which ccache)"
|
||||
ccache --max-size=3G
|
||||
ccache -z # Zero statistics
|
||||
fi
|
||||
|
||||
cmake . -DBUILD_TOOLS=1 -DSELF_TEST=1 ${CACHE_ARGS};
|
||||
|
||||
echo "Building..."
|
||||
cmake --build . -- -j 2;
|
||||
ctest -j 2 -V;
|
||||
cmake --build . -j 2
|
||||
|
||||
if [ `which ccache` ]; then
|
||||
echo "Built with ccache, outputting cache stats..."
|
||||
ccache -s
|
||||
fi
|
||||
|
||||
echo "Testing..."
|
||||
|
||||
ctest -j 2 -V;
|
||||
|
||||
cd Server/;
|
||||
touch apiCheckFailed.flag
|
||||
if [ "$TRAVIS_CUBERITE_BUILD_TYPE" != "COVERAGE" ]; then
|
||||
|
Loading…
x
Reference in New Issue
Block a user