ledger/.travis.yml
Alexis Hildebrandt 7c70eaf95c [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.
2014-12-24 12:07:23 +01:00

34 lines
993 B
YAML

# 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
language: cpp
compiler:
- clang
- gcc
before_install:
# 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
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"
# Install Ledger dependencies
- sudo apt-get install -qq libboost1.55 libgmp-dev libmpfr-dev libeditline-dev
before_script:
- export JOBS=2
- ./acprep opt make --jobs $JOBS --python
script:
- ./acprep check --jobs $JOBS -- --output-on-failure
- PYTHONPATH=. python python/demo.py
notifications:
email:
on_success: change
on_failure: change
irc: "chat.freenode.net#ledger"