.travis.yml 661 字节
Newer Older
N
Niels 已提交
1 2 3
language: cpp

compiler:
N
Niels 已提交
4
  - gcc
N
Niels 已提交
5

N
Niels 已提交
6
before_install:
N
Niels 已提交
7 8 9 10
  - sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
  - sudo apt-get update -qq
  - if [ "$CXX" = "g++" ]; then sudo apt-get install -qq g++-4.8; fi
  - if [ "$CXX" = "g++" ]; then export CXX="g++-4.8" CC="gcc-4.8"; fi
N
Niels 已提交
11
  - sudo pip install cpp-coveralls pyyaml
N
Niels 已提交
12
  - sudo apt-get install valgrind
N
Niels 已提交
13

N
Niels 已提交
14 15 16 17 18 19
before_script:
  - autoreconf -iv
  - ./configure

script:
  - make
N
Niels 已提交
20
  - ./json_unit
21
  - valgrind --error-exitcode=1 --leak-check=full ./json_unit
N
Niels 已提交
22 23 24 25 26

after_success:
  - make clean
  - make json_unit CXXFLAGS="-fprofile-arcs -ftest-coverage"
  - ./json_unit
N
Niels 已提交
27
  - coveralls --gcov-options '\-lp' --gcov 'gcov-4.8'