mirror of https://github.com/KLayout/klayout.git
Using ccache for app build
This commit is contained in:
parent
e68047733f
commit
1399beb229
24
.travis.yml
24
.travis.yml
|
|
@ -343,7 +343,9 @@ matrix:
|
||||||
- name: "KLayout macOS 10.13 with py3.7"
|
- name: "KLayout macOS 10.13 with py3.7"
|
||||||
os: osx
|
os: osx
|
||||||
osx_image: xcode9.4 # macOS 10.13
|
osx_image: xcode9.4 # macOS 10.13
|
||||||
cache: ccache
|
cache:
|
||||||
|
directories:
|
||||||
|
- ccache
|
||||||
addons:
|
addons:
|
||||||
homebrew:
|
homebrew:
|
||||||
packages:
|
packages:
|
||||||
|
|
@ -360,7 +362,9 @@ matrix:
|
||||||
- name: "KLayout macOS 10.12 with py3.7"
|
- name: "KLayout macOS 10.12 with py3.7"
|
||||||
os: osx
|
os: osx
|
||||||
osx_image: xcode8.3 # macOS 10.12
|
osx_image: xcode8.3 # macOS 10.12
|
||||||
cache: ccache
|
cache:
|
||||||
|
directories:
|
||||||
|
- ccache
|
||||||
addons:
|
addons:
|
||||||
homebrew:
|
homebrew:
|
||||||
packages:
|
packages:
|
||||||
|
|
@ -377,7 +381,9 @@ matrix:
|
||||||
- name: "KLayout macOS 10.11 with py3.7"
|
- name: "KLayout macOS 10.11 with py3.7"
|
||||||
os: osx
|
os: osx
|
||||||
osx_image: xcode8 # macOS 10.11
|
osx_image: xcode8 # macOS 10.11
|
||||||
cache: ccache
|
cache:
|
||||||
|
directories:
|
||||||
|
- ccache
|
||||||
addons:
|
addons:
|
||||||
homebrew:
|
homebrew:
|
||||||
packages:
|
packages:
|
||||||
|
|
@ -393,7 +399,9 @@ matrix:
|
||||||
- name: "KLayout macOS 10.13 with py2.7"
|
- name: "KLayout macOS 10.13 with py2.7"
|
||||||
os: osx
|
os: osx
|
||||||
osx_image: xcode9.4 # macOS 10.13
|
osx_image: xcode9.4 # macOS 10.13
|
||||||
cache: ccache
|
cache:
|
||||||
|
directories:
|
||||||
|
- ccache
|
||||||
addons:
|
addons:
|
||||||
homebrew:
|
homebrew:
|
||||||
packages:
|
packages:
|
||||||
|
|
@ -409,7 +417,9 @@ matrix:
|
||||||
- name: "KLayout macOS 10.12 with py2.7"
|
- name: "KLayout macOS 10.12 with py2.7"
|
||||||
os: osx
|
os: osx
|
||||||
osx_image: xcode8.3 # macOS 10.12
|
osx_image: xcode8.3 # macOS 10.12
|
||||||
cache: ccache
|
cache:
|
||||||
|
directories:
|
||||||
|
- ccache
|
||||||
addons:
|
addons:
|
||||||
homebrew:
|
homebrew:
|
||||||
packages:
|
packages:
|
||||||
|
|
@ -425,7 +435,9 @@ matrix:
|
||||||
- name: "KLayout macOS 10.11 with py2.7"
|
- name: "KLayout macOS 10.11 with py2.7"
|
||||||
os: osx
|
os: osx
|
||||||
osx_image: xcode8 # macOS 10.11
|
osx_image: xcode8 # macOS 10.11
|
||||||
cache: ccache
|
cache:
|
||||||
|
directories:
|
||||||
|
- ccache
|
||||||
addons:
|
addons:
|
||||||
homebrew:
|
homebrew:
|
||||||
packages:
|
packages:
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,14 @@ PING_LOOP_PID=$!
|
||||||
|
|
||||||
touch build.txt
|
touch build.txt
|
||||||
|
|
||||||
|
# Configure ccache
|
||||||
|
mkdir -p ccache;
|
||||||
|
export CCACHE_DIR="`pwd`/ccache"
|
||||||
|
|
||||||
|
# Show ccache stats
|
||||||
|
echo "Cache stats:"
|
||||||
|
ccache -s
|
||||||
|
|
||||||
echo "build"
|
echo "build"
|
||||||
make build >> build.txt 2>&1 || tail -500 build.txt
|
make build >> build.txt 2>&1 || tail -500 build.txt
|
||||||
echo "deploy"
|
echo "deploy"
|
||||||
|
|
@ -17,6 +25,10 @@ make test >> build.txt 2>&1 || tail -500 build.txt
|
||||||
echo "dropbox-deploy"
|
echo "dropbox-deploy"
|
||||||
make dropbox-deploy
|
make dropbox-deploy
|
||||||
|
|
||||||
|
# Show ccache stats
|
||||||
|
echo "Cache stats:"
|
||||||
|
ccache -s
|
||||||
|
|
||||||
echo "build finished"
|
echo "build finished"
|
||||||
|
|
||||||
kill $PING_LOOP_PID
|
kill $PING_LOOP_PID
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue