diff --git a/.travis.yml b/.travis.yml index 5a5bdbb1..8951c70e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,22 +8,6 @@ dist: bionic # Enable C++ language support language: cpp -before_cache: - - |- - case $TRAVIS_OS_NAME in - windows) - # https://unix.stackexchange.com/a/137322/107554 - $msys2 pacman --sync --clean --noconfirm - ;; - esac - -# Cache compiled object files with ccache -cache: - ccache - directories: - - $HOME/AppData/Local/Temp/chocolatey - - /C/tools/msys64 - compiler: - gcc @@ -84,6 +68,22 @@ before_install: - $mingw64 ${CC} --version - $mingw64 ${CXX} --version +before_cache: + - |- + case $TRAVIS_OS_NAME in + windows) + # https://unix.stackexchange.com/a/137322/107554 + $msys2 pacman --sync --clean --noconfirm + ;; + esac + +# Cache compiled object files with ccache +cache: +# ccache + directories: + - $HOME/AppData/Local/Temp/chocolatey + - /C/tools/msys64 + install: # Get number of cores (or 2 by default if somehow none of these are available somehow) - JOBS=$(nproc 2>/dev/null || sysctl -n hw.ncpu 2>/dev/null || getconf _NPROCESSORS_ONLN 2>/dev/null || echo 2)