From d1de54dc284b418ab709bd43f25612ba187ee475 Mon Sep 17 00:00:00 2001
From: Alam Ed Arias <alam@srb2.org>
Date: Wed, 24 Jan 2024 02:43:35 +0000
Subject: [PATCH] Update .gitlab-ci.yml file

Old version of ccache do not have --verbose, add a fallback for that
---
 .gitlab-ci.yml | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index fdd18777b..425b7d1d1 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -153,8 +153,8 @@ default:
     - - |
           # ccache_stats
           echo -e "\e[0Ksection_start:`date +%s`:ccache_stats[collapsed=true]\r\e[0Kccache statistics:"
-      - ccache --show-stats --verbose
-      - ccache --show-log-stats --verbose
+      - ccache --show-stats --verbose || ccache --show-stats
+      - ccache --show-log-stats --verbose || ccache --show-log-stats
       - |
           # ccahe_stats
           echo -e "\e[0Ksection_end:`date +%s`:ccache_stats\r\e[0K"
@@ -673,8 +673,8 @@ Alpine 3 GCC:
     - - |
           # ccache_stats
           echo -e "\e[0Ksection_start:`date +%s`:ccache_stats[collapsed=true]\r\e[0Kccache statistics:"
-      - ccache --show-stats --verbose
-      - ccache --show-log-stats --verbose
+      - ccache --show-stats --verbose || ccache --show-stats
+      - ccache --show-log-stats --verbose || ccache --show-log-stats
       - |
           # ccahe_stats
           echo -e "\e[0Ksection_end:`date +%s`:ccache_stats\r\e[0K"
-- 
GitLab