export MAKEFLAGS="-j5"
export EIO_MONITOR_POLL=1
-DEFAULT_LINUX_COPTS="--prefix=/usr/ --with-tests=regular --disable-cxx-bindings"
+DEFAULT_LINUX_COPTS="--prefix=/usr/ --with-tests=regular --disable-cxx-bindings -C"
WAYLAND_LINUX_COPTS=" --enable-wayland --enable-elput --enable-drm \
--enable-wayland-ivi-shell --enable-gl-drm --with-opengl=es --enable-egl"
--env CXX="ccache g++" --env CFLAGS="-fdirectives-only" --env CXXFLAGS="-fdirectives-only" \
$(cat $HOME/cid) ./autogen.sh $OPTS
else
- OSX_COPTS="--disable-cxx-bindings"
+ OSX_COPTS="--disable-cxx-bindings -C"
# Prepare OSX env for build
mkdir -p ~/Library/LaunchAgents
language: c
-cache: ccache
+cache:
+ directories:
+ - $HOME/cachedir
+ - $HOME/.ccache
+ - $HOME/autom4te.cache
sudo: required
dist: trusty
if [[ "$TRAVIS_OS_NAME" == "linux" ]] ; then
docker version
docker run --cidfile $HOME/cid -t -d -v `pwd`:/src -v $HOME/.ccache:/root/.ccache -w /src stefanschmidt1/ci-support-files:$DISTRO bash
- cat $HOME/cid
+ cp $HOME/cachedir/config.cache . || true
fi
- .ci/ci-ccache-stats.sh
+ - |
+ if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
+ cp $HOME/cachedir/config.cache . || true
+ fi
script:
- .ci/ci-configure.sh "$CI_BUILD_TYPE"
before_cache:
- .ci/ci-ccache-stats.sh
- |
+ mkdir -p $HOME/cachedir
if [[ "$TRAVIS_OS_NAME" == "linux" ]] ; then
sudo chown travis:travis $HOME/.ccache
+ mkdir -p $HOME/cachedir/
+ sudo cp config.cache $HOME/cachedir/
+ sudo chown travis:travis $HOME/cachedir/config.cache
+ sudo chown travis:travis $HOME/autom4te.cache
else
+ cp config.cache $HOME/cachedir
fi
after_success: