.travis.yml 704 字节
Newer Older
朔-望's avatar
朔-望 已提交
1 2 3 4 5 6 7
language: cpp
cache: ccache
sudo: required
dist: trusty

os:
  - linux
朔-望's avatar
朔-望 已提交
8

朔-望's avatar
朔-望 已提交
9 10 11
addons:
  apt:
    packages:
12 13 14 15 16 17 18
#      - git
#      - python
#      - python-pip
#      - python2.7-dev
#      - libc6-i386
#      - curl
      - clang-format-3.8
19
        
朔-望's avatar
朔-望 已提交
20
before_install:
21 22
  - sudo pip install cpplint pre-commit
  - sudo ln -s /usr/bin/clang-format-3.8 /usr/bin/clang-format
23
  # Download and install recent cmake
朔-望's avatar
朔-望 已提交
24

朔-望's avatar
朔-望 已提交
25 26
script:
  - | 
朔-望's avatar
朔-望 已提交
27 28
    function timeout() { perl -e 'alarm shift; exec @ARGV' "$@"; }
  - |
朔-望's avatar
朔-望 已提交
29
    timeout 600 .travis/pre-commit-job.sh # 10min timeout
朔-望's avatar
朔-望 已提交
30 31 32 33 34 35
    RESULT=$?; if [ $RESULT -eq 0 ] || [ $RESULT -eq 142 ]; then true; else exit 1; fi;

notifications:
  email:
    on_success: change
    on_failure: always