Improves travis-ci build time

- Compilation is cached with ccache
- Apt packages are cached too
- Make uses the `-j2` flag since the container has 2 cores
This commit is contained in:
jvoisin 2015-11-27 23:48:47 +01:00
parent ad6baf0824
commit fc8d6cf5e2

View File

@ -23,12 +23,14 @@ addons:
- dc
- cabextract
install:
- git clone `doc/repo REGRESSIONS`
cache:
- ccache
- apt
script:
- git clone --depth 1 `doc/repo REGRESSIONS`
- ./configure --prefix=`pwd`/install > /dev/null
- make -s > /dev/null
- make -s -j2 > /dev/null
- make install > /dev/null
- export PATH=${TRAVIS_BUILD_DIR}/install/bin:${PATH}
- export LD_LIBRARY_PATH=${TRAVIS_BUILD_DIR}/install/lib:${LD_LIBRARY_PATH}