summaryrefslogtreecommitdiff
path: root/.travis.yml
blob: fee32bef223dc0858fddb49670b6384a071c7f06 (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
41
42
43
44
45
46
47
48
49
50
51
52
53
# 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 https://lint.travis-ci.org/
#       or travis-lint https://github.com/travis-ci/travis-lint

language: cpp
compiler:
  - clang
  - gcc
sudo: false
cache:
  apt: true

addons:
  apt:
    sources:
      - ubuntu-toolchain-r-test
      - boost-latest
    packages:
      - gcc-4.8
      - g++-4.8
      - libgmp-dev
      - libmpfr-dev
      - libedit-dev
      - libboost1.55-dev
      - libboost-test1.55-dev
      - libboost-regex1.55-dev
      - libboost-python1.55-dev
      - libboost-system1.55-dev
      - libboost-date-time1.55-dev
      - libboost-iostreams1.55-dev
      - libboost-filesystem1.55-dev
      - libboost-serialization1.55-dev

before_script:
  - if [ "$CXX" = "g++" ]; then export CXX="g++-4.8" CC="gcc-4.8"; fi
  - cmake . -DUSE_PYTHON=ON
  - make

script:
  - make test
  - 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