.travis.yml 641 字节
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 12 13 14 15
addons:
  apt:
    packages:
      - git
      - python
      - python-pip
      - python2.7-dev
16 17
      - libc6-i386
      - curl
朔-望's avatar
朔-望 已提交
18

19 20 21
compiler:
  - clang
        
朔-望's avatar
朔-望 已提交
22 23
before_install:
  - sudo pip install -U virtualenv pre-commit pip
24
  # Download and install recent cmake
朔-望's avatar
朔-望 已提交
25

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

notifications:
  email:
    on_success: change
    on_failure: always