summaryrefslogtreecommitdiff
path: root/.travis.yml
blob: 9c6a191089dd848a4061ebbbe341d88a5668ecc6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# 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

# NOTE: Please validate this file after editing it using
#       Travis WebLint http://lint.travis-ci.org/
#       or travis-yaml https://github.com/travis-ci/travis-yaml

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
  - if [ "$CXX" = "g++" ]; then sudo apt-get install -qq g++-4.8 gcc-4.8; fi
  - if [ "$CXX" = "g++" ]; then export CXX="g++-4.8" CC="gcc-4.8"; fi
    # Install Ledger dependencies
  - sudo apt-get install -qq libboost1.55 libgmp-dev libmpfr-dev libeditline-dev

before_script:
  - ./acprep opt make --python

script:
  - ./acprep check --jobs $(nproc) -- --output-on-failure
  - PYTHONPATH=. python python/demo.py

notifications:
  email:
    on_success: change
    on_failure: change
  irc:
    channels: [ "chat.freenode.net#ledger" ]
    on_success: change
    on_failure: change