From 1399beb2291c042d3ecaed9535cc712c2a78fca8 Mon Sep 17 00:00:00 2001 From: Thomas Ferreira de Lima Date: Thu, 4 Apr 2019 16:19:20 -0400 Subject: [PATCH] Using ccache for app build --- .travis.yml | 24 ++++++++++++++++++------ travis-build.sh | 12 ++++++++++++ 2 files changed, 30 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index a2c94dda9..a83f16f40 100644 --- a/.travis.yml +++ b/.travis.yml @@ -343,7 +343,9 @@ matrix: - name: "KLayout macOS 10.13 with py3.7" os: osx osx_image: xcode9.4 # macOS 10.13 - cache: ccache + cache: + directories: + - ccache addons: homebrew: packages: @@ -360,7 +362,9 @@ matrix: - name: "KLayout macOS 10.12 with py3.7" os: osx osx_image: xcode8.3 # macOS 10.12 - cache: ccache + cache: + directories: + - ccache addons: homebrew: packages: @@ -377,7 +381,9 @@ matrix: - name: "KLayout macOS 10.11 with py3.7" os: osx osx_image: xcode8 # macOS 10.11 - cache: ccache + cache: + directories: + - ccache addons: homebrew: packages: @@ -393,7 +399,9 @@ matrix: - name: "KLayout macOS 10.13 with py2.7" os: osx osx_image: xcode9.4 # macOS 10.13 - cache: ccache + cache: + directories: + - ccache addons: homebrew: packages: @@ -409,7 +417,9 @@ matrix: - name: "KLayout macOS 10.12 with py2.7" os: osx osx_image: xcode8.3 # macOS 10.12 - cache: ccache + cache: + directories: + - ccache addons: homebrew: packages: @@ -425,7 +435,9 @@ matrix: - name: "KLayout macOS 10.11 with py2.7" os: osx osx_image: xcode8 # macOS 10.11 - cache: ccache + cache: + directories: + - ccache addons: homebrew: packages: diff --git a/travis-build.sh b/travis-build.sh index b988d0745..bd412f30f 100755 --- a/travis-build.sh +++ b/travis-build.sh @@ -8,6 +8,14 @@ PING_LOOP_PID=$! touch build.txt +# Configure ccache +mkdir -p ccache; +export CCACHE_DIR="`pwd`/ccache" + +# Show ccache stats +echo "Cache stats:" +ccache -s + echo "build" make build >> build.txt 2>&1 || tail -500 build.txt echo "deploy" @@ -17,6 +25,10 @@ make test >> build.txt 2>&1 || tail -500 build.txt echo "dropbox-deploy" make dropbox-deploy +# Show ccache stats +echo "Cache stats:" +ccache -s + echo "build finished" kill $PING_LOOP_PID