From 02cab3029b5f0d514df9bf4a6c66b3b0767d44ea Mon Sep 17 00:00:00 2001 From: Alejandro Martinez Date: Sat, 13 Aug 2022 13:00:53 -0300 Subject: [PATCH] Travis-ci - cache macOS app package [skip AppVeyor] To avoid rebuild when after_success is cancelled, so restarting the job can complete the packaging. Drawback is we need to clear the cache to rebuild [publish binaries] --- .travis.yml | 1 + travis/osx/script.sh | 3 +++ 2 files changed, 4 insertions(+) diff --git a/.travis.yml b/.travis.yml index f15965553..4ed4a83a9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,6 +14,7 @@ cache: - D2XX - site-packages - VLC + - src/GoldenCheetah.app env: global: diff --git a/travis/osx/script.sh b/travis/osx/script.sh index 241ead970..f8f47ebc8 100755 --- a/travis/osx/script.sh +++ b/travis/osx/script.sh @@ -1,7 +1,10 @@ #!/bin/bash set -ev +# Build only if a package is not already cached +if [ -z "$(ls -A src/GoldenCheetah.app)" ]; then CC=clang CXX=clang++ /usr/local/opt/qt5/bin/qmake -makefile -recursive QMAKE_CXXFLAGS_WARN_ON+="-Wno-unused-private-field -Wno-c++11-narrowing -Wno-deprecated-declarations -Wno-deprecated-register -Wno-nullability-completeness -Wno-sign-compare -Wno-inconsistent-missing-override" QMAKE_CFLAGS_WARN_ON+="-Wno-deprecated-declarations -Wno-sign-compare" CC=clang CXX=clang++ make qmake_all CC=clang CXX=clang++ make -j4 sub-qwt --silent CC=clang CXX=clang++ make -j4 sub-src --silent || CC=clang CXX=clang++ make sub-src +fi exit