forked from enlightenment/efl
ci: add autoconf caching
this enables caching of the autoreconf and ./configure stages of the build using autotools-provided caching mechanisms in order to speed up these steps fix T7136 Differential Revision: https://phab.enlightenment.org/D6608
This commit is contained in:
parent
2053ccb717
commit
3c762fbe1f
|
@ -7,7 +7,7 @@ CI_BUILD_TYPE="$1"
|
||||||
export MAKEFLAGS="-j5"
|
export MAKEFLAGS="-j5"
|
||||||
export EIO_MONITOR_POLL=1
|
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 \
|
WAYLAND_LINUX_COPTS=" --enable-wayland --enable-elput --enable-drm \
|
||||||
--enable-wayland-ivi-shell --enable-gl-drm --with-opengl=es --enable-egl"
|
--enable-wayland-ivi-shell --enable-gl-drm --with-opengl=es --enable-egl"
|
||||||
|
@ -54,7 +54,7 @@ if [ "$DISTRO" != "" ] ; then
|
||||||
--env CXX="ccache g++" --env CFLAGS="-fdirectives-only" --env CXXFLAGS="-fdirectives-only" \
|
--env CXX="ccache g++" --env CFLAGS="-fdirectives-only" --env CXXFLAGS="-fdirectives-only" \
|
||||||
$(cat $HOME/cid) ./autogen.sh $OPTS
|
$(cat $HOME/cid) ./autogen.sh $OPTS
|
||||||
else
|
else
|
||||||
OSX_COPTS="--disable-cxx-bindings"
|
OSX_COPTS="--disable-cxx-bindings -C"
|
||||||
|
|
||||||
# Prepare OSX env for build
|
# Prepare OSX env for build
|
||||||
mkdir -p ~/Library/LaunchAgents
|
mkdir -p ~/Library/LaunchAgents
|
||||||
|
|
18
.travis.yml
18
.travis.yml
|
@ -1,5 +1,9 @@
|
||||||
language: c
|
language: c
|
||||||
cache: ccache
|
cache:
|
||||||
|
directories:
|
||||||
|
- $HOME/cachedir
|
||||||
|
- $HOME/.ccache
|
||||||
|
- $HOME/autom4te.cache
|
||||||
sudo: required
|
sudo: required
|
||||||
dist: trusty
|
dist: trusty
|
||||||
|
|
||||||
|
@ -73,10 +77,14 @@ before_script:
|
||||||
if [[ "$TRAVIS_OS_NAME" == "linux" ]] ; then
|
if [[ "$TRAVIS_OS_NAME" == "linux" ]] ; then
|
||||||
docker version
|
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
|
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
|
fi
|
||||||
|
|
||||||
- .ci/ci-ccache-stats.sh
|
- .ci/ci-ccache-stats.sh
|
||||||
|
- |
|
||||||
|
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
|
||||||
|
cp $HOME/cachedir/config.cache . || true
|
||||||
|
fi
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- .ci/ci-configure.sh "$CI_BUILD_TYPE"
|
- .ci/ci-configure.sh "$CI_BUILD_TYPE"
|
||||||
|
@ -99,9 +107,15 @@ script:
|
||||||
before_cache:
|
before_cache:
|
||||||
- .ci/ci-ccache-stats.sh
|
- .ci/ci-ccache-stats.sh
|
||||||
- |
|
- |
|
||||||
|
mkdir -p $HOME/cachedir
|
||||||
if [[ "$TRAVIS_OS_NAME" == "linux" ]] ; then
|
if [[ "$TRAVIS_OS_NAME" == "linux" ]] ; then
|
||||||
sudo chown travis:travis $HOME/.ccache
|
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
|
else
|
||||||
|
cp config.cache $HOME/cachedir
|
||||||
fi
|
fi
|
||||||
|
|
||||||
after_success:
|
after_success:
|
||||||
|
|
Loading…
Reference in New Issue