t-unit: display stats at the end
[pachi.git] / .travis.yml
blobc9a338266b836b4133b8bb92b6460a75779a0540
1 # http://docs.travis-ci.com/user/languages/c/
2 # start from https://github.com/rubinius/rubinius/blob/master/.travis.yml
3 language: c
4 sudo: false
6 compiler:
7   - clang
8   - gcc
9 os:
10   - linux
12 # This will install newer versions of GCC and Clang. Default GCC works fine,
13 # therefore its lines are commented out. Default clang does not know
14 # one of the compilation switches and it fails, so it must be updated.
16 # http://stackoverflow.com/a/30925448/1047788
17 # https://github.com/travis-ci/travis-ci/issues/3478
18 install:
19   - if [ "$CC" = "clang" ]; then export CXX="clang++-3.7" CC="clang-3.7"; fi
20 #  - if [ "$CC" = "gcc" ]; then export CXX="g++-4.8" CC="gcc-4.8"; fi
22 # http://docs.travis-ci.com/user/apt/
23 addons:
24   apt:
25     sources:
26       - llvm-toolchain-precise-3.7
27       - ubuntu-toolchain-r-test
28     packages: 
29       - clang-3.7
30 #      - gcc-4.8
31 #      - g++-4.8
33   
34 # https://blog.lukaspradel.com/continuous-integration-for-cmake-projects-using-travis-ci/  
35 script:
36   - make -j2 && ./pachi -u t-unit/sar.t