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

N
Niels 已提交
3 4
sudo: false

N
Niels 已提交
5 6 7
compiler:
  - gcc

N
try env  
Niels 已提交
8
env:
N
Niels 已提交
9 10
  - COMPILER=g++-4.9
  - COMPILER=g++-5
N
Niels 已提交
11 12
  - COMPILER=clang-3.6
  - COMPILER=clang-3.7
N
Niels 已提交
13

N
Niels 已提交
14 15
addons:
  apt:
N
Niels 已提交
16
    sources:
N
Niels 已提交
17
    - ubuntu-toolchain-r-test
N
Niels 已提交
18
    - llvm-toolchain-precise
N
Niels 已提交
19 20
    - llvm-toolchain-precise-3.6
    - llvm-toolchain-precise-3.7
N
Niels 已提交
21 22
    packages:
    - g++-4.9
N
try env  
Niels 已提交
23
    - g++-5
N
Niels 已提交
24 25
    - clang-3.6
    - clang-3.7
N
Niels 已提交
26 27 28 29 30
    - valgrind
    - python-pip
    - python-yaml

before_script:
N
Niels 已提交
31
  - pip install --user git+git://github.com/eddyxu/cpp-coveralls.git
N
Niels 已提交
32 33

script:
N
Niels 已提交
34
  - make CXX=$COMPILER
35
  - ./json_unit "*"
36
  - valgrind --error-exitcode=1 --leak-check=full ./json_unit
N
Niels 已提交
37 38 39

after_success:
  - make clean
N
Niels 已提交
40
  - touch src/json.hpp
N
Niels 已提交
41
  - make json_unit CXXFLAGS="-fprofile-arcs -ftest-coverage -std=c++11" CXX=$COMPILER
42
  - ./json_unit "*"
N
Niels 已提交
43
  - coveralls --exclude test/catch.hpp --exclude test/unit.cpp --include src/json.hpp --gcov-options '\-lp' --gcov 'gcov-4.9'