Skip to content

Commit 5003f12

Browse files
ararslanstaticfloat
authored andcommitted
Use CCache on Travis (#24998)
[av skip] [bsd skip]
1 parent f81d7ef commit 5003f12

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

.travis.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ matrix:
1111
sources:
1212
- ubuntu-toolchain-r-test
1313
packages:
14+
- ccache
1415
- libssl1.0.0
1516
- bar
1617
- time
@@ -31,6 +32,7 @@ matrix:
3132
sources:
3233
- ubuntu-toolchain-r-test
3334
packages:
35+
- ccache
3436
- libssl1.0.0
3537
- bar
3638
- time
@@ -39,11 +41,7 @@ matrix:
3941
- os: osx
4042
env: ARCH="x86_64"
4143
osx_image: xcode8
42-
cache:
43-
directories:
44-
- $TRAVIS_BUILD_DIR/deps/srccache
45-
- $TRAVIS_BUILD_DIR/deps/scratch
46-
- $TRAVIS_BUILD_DIR/deps/usr-staging
44+
cache: ccache
4745
branches:
4846
only:
4947
- master
@@ -72,22 +70,23 @@ before_install:
7270
ln -s /usr/bin/g++-5 $HOME/bin/x86_64-linux-gnu-g++;
7371
gcc --version;
7472
BAR="bar -i 30";
75-
BUILDOPTS="-j5 VERBOSE=1 FORCE_ASSERTIONS=1 LLVM_ASSERTIONS=1";
73+
BUILDOPTS="-j5 VERBOSE=1 FORCE_ASSERTIONS=1 LLVM_ASSERTIONS=1 USECCACHE=1";
7674
echo "override ARCH=$ARCH" >> Make.user;
7775
sudo sh -c "echo 0 > /proc/sys/net/ipv6/conf/lo/disable_ipv6";
7876
export JULIA_CPU_CORES=4;
7977
export JULIA_TEST_MAXRSS_MB=1200;
8078
TESTSTORUN="all";
8179
elif [ `uname` = "Darwin" ]; then
8280
brew update;
83-
brew install -v jq pv;
81+
brew install -v jq pv ccache;
82+
export PATH="$(brew --prefix ccache)/libexec:$PATH";
8483
BAR="pv -i 30";
8584
contrib/travis_fastfail.sh || exit 1;
8685
brew tap staticfloat/julia;
8786
brew rm --force $(brew deps --HEAD julia);
8887
brew install -v --only-dependencies --HEAD julia;
8988
brew install -v staticfloat/juliadeps/libgfortran llvm39-julia;
90-
BUILDOPTS="-j3 USECLANG=1 LLVM_CONFIG=$(brew --prefix llvm39-julia)/bin/llvm-config LLVM_SIZE=$(brew --prefix llvm39-julia)/bin/llvm-size";
89+
BUILDOPTS="-j3 USECLANG=1 USECCACHE=1 LLVM_CONFIG=$(brew --prefix llvm39-julia)/bin/llvm-config LLVM_SIZE=$(brew --prefix llvm39-julia)/bin/llvm-size";
9190
BUILDOPTS="$BUILDOPTS VERBOSE=1 USE_BLAS64=0 SUITESPARSE_INC=-I$(brew --prefix suite-sparse-julia)/include FORCE_ASSERTIONS=1";
9291
BUILDOPTS="$BUILDOPTS LIBBLAS=-lopenblas LIBBLASNAME=libopenblas LIBLAPACK=-lopenblas LIBLAPACKNAME=libopenblas";
9392
for lib in LLVM SUITESPARSE ARPACK BLAS LAPACK GMP MPFR PCRE LIBUNWIND; do

0 commit comments

Comments
 (0)