~ubuntu-branches/ubuntu/wily/ledger/wily

« back to all changes in this revision

Viewing changes to .travis.yml

  • Committer: Package Import Robot
  • Author(s): David Bremner
  • Date: 2014-10-08 19:20:38 UTC
  • mfrom: (1.1.3) (9.1.7 sid)
  • Revision ID: package-import@ubuntu.com-20141008192038-py5cxm93rdt3x2uz
Tags: 3.1+dfsg1-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Since the Travis CI environment http://docs.travis-ci.com/user/ci-environment/
 
2
# provides GNU GCC 4.6, which does not support -std=c++11 GNU GCC 4.8 is
 
3
# installed. Additionally boost 1.55.0 is compiled from source, since in the
 
4
# Travis CI environment only boost 1.46 is available and no backported package
 
5
# was found on the net.
 
6
 
1
7
language: cpp
2
8
compiler:
3
9
  - clang
4
10
  - gcc
5
 
install: "./acprep dependencies"
6
 
before_script: "./acprep opt make --python"
 
11
 
 
12
before_install:
 
13
    # Add software package repository, containing updated build toochain, i.e. GNU GCC 4.8
 
14
  - sudo add-apt-repository ppa:ubuntu-toolchain-r/test --yes
 
15
  - sudo apt-get update -qq
 
16
    # Download boost 1.55 and extract the source archive
 
17
  - 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
 
18
  - export BOOST_ROOT="$TRAVIS_BUILD_DIR/../boost-trunk"
 
19
  - export CMAKE_MODULE_PATH="$BOOST_ROOT"
 
20
  - mkdir -p $BOOST_ROOT
 
21
  - tar jxf boost-trunk.tar.bz2 --strip-components=1 -C $BOOST_ROOT
 
22
 
 
23
install: 
 
24
    # Install GNU GCC 4.8 required by use of C++11
 
25
  - sudo apt-get install -qq g++-4.8 gcc-4.8
 
26
  - export CXX="g++-4.8" CC="gcc-4.8"
 
27
    # Build boost libraries required by ledger
 
28
  - (cd $BOOST_ROOT; ./bootstrap.sh --with-libraries=date_time,filesystem,system,iostreams,regex,python,test)
 
29
  - (cd $BOOST_ROOT; ./b2 threading=multi --prefix=$BOOST_ROOT -d0 install)
 
30
    # Install further dependencies
 
31
  - ./acprep dependencies
 
32
 
 
33
before_script:
 
34
  - ./acprep opt make --python --boost=$BOOST_ROOT
 
35
 
7
36
script:
8
 
  - "./acprep check -- --output-on-failure"
9
 
  - "PYTHONPATH=. python python/demo.py"
 
37
  - ./acprep check -- --output-on-failure
 
38
  - PYTHONPATH=. python python/demo.py
 
39
 
10
40
notifications:
11
41
  email:
12
42
    on_success: change