summaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorAlexis Hildebrandt <afh@surryhill.net>2014-12-24 10:29:54 +0100
committerAlexis Hildebrandt <afh@surryhill.net>2014-12-24 12:07:23 +0100
commit7c70eaf95c746501408f5d87730238dd27a786d2 (patch)
treef6bb0d0db661df71661baf067569a54629e85bc0 /.travis.yml
parentca9eb815aff3d158b458874c9c81a0ff90889242 (diff)
downloadfork-ledger-7c70eaf95c746501408f5d87730238dd27a786d2.tar.gz
fork-ledger-7c70eaf95c746501408f5d87730238dd27a786d2.tar.bz2
fork-ledger-7c70eaf95c746501408f5d87730238dd27a786d2.zip
[travis] Shorten Travis CI run times
by adding --jobs to utilize multiple cores and using boost ppa packages instead of downloading the source and building boost from scratch. This effectively cuts the time for a Travis CI run in half.
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml26
1 files changed, 8 insertions, 18 deletions
diff --git a/.travis.yml b/.travis.yml
index b4999235..11d399e6 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,8 +1,5 @@
# Since the Travis CI environment http://docs.travis-ci.com/user/ci-environment/
-# provides GNU GCC 4.6, which does not support -std=c++11 GNU GCC 4.8 is
-# installed. Additionally boost 1.55.0 is compiled from source, since in the
-# Travis CI environment only boost 1.46 is available and no backported package
-# was found on the net.
+# provides GNU GCC 4.6, which does not support -std=c++11 GNU GCC 4.8 is installed
language: cpp
compiler:
@@ -10,31 +7,24 @@ compiler:
- gcc
before_install:
- # Add software package repository, containing updated build toochain, i.e. GNU GCC 4.8
+ # Add software package repositories with recent versions of gcc and boost
- sudo add-apt-repository ppa:ubuntu-toolchain-r/test --yes
+ - sudo add-apt-repository ppa:boost-latest/ppa --yes
- sudo apt-get update -qq
- # Download boost 1.55 and extract the source archive
- - wget --no-verbose --output-document=boost-trunk.tar.bz2 http://sourceforge.net/projects/boost/files/boost/1.55.0/boost_1_55_0.tar.bz2/download
- - export BOOST_ROOT="$TRAVIS_BUILD_DIR/../boost-trunk"
- - export CMAKE_MODULE_PATH="$BOOST_ROOT"
- - mkdir -p $BOOST_ROOT
- - tar jxf boost-trunk.tar.bz2 --strip-components=1 -C $BOOST_ROOT
install:
# Install GNU GCC 4.8 required by use of C++11
- sudo apt-get install -qq g++-4.8 gcc-4.8
- export CXX="g++-4.8" CC="gcc-4.8"
- # Build boost libraries required by ledger
- - (cd $BOOST_ROOT; ./bootstrap.sh --with-libraries=date_time,filesystem,system,iostreams,regex,python,test)
- - (cd $BOOST_ROOT; ./b2 threading=multi --prefix=$BOOST_ROOT -d0 install)
- # Install further dependencies
- - ./acprep dependencies
+ # Install Ledger dependencies
+ - sudo apt-get install -qq libboost1.55 libgmp-dev libmpfr-dev libeditline-dev
before_script:
- - ./acprep opt make --python --boost=$BOOST_ROOT
+ - export JOBS=2
+ - ./acprep opt make --jobs $JOBS --python
script:
- - ./acprep check -- --output-on-failure
+ - ./acprep check --jobs $JOBS -- --output-on-failure
- PYTHONPATH=. python python/demo.py
notifications: