.travis.yml 536 字节
Newer Older
T
tangwei 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
language: generic 
sudo: required
dist: trusty

services:
  - docker

os:
  - linux

env:
  - JOB=check_style

before_install:
  # For pylint dockstring checker
T
tangwei 已提交
16
  - sudo pip install pylint pytest astroid isort pre-commmit
T
tangwei 已提交
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
  - |
    function timeout() { perl -e 'alarm shift; exec @ARGV' "$@"; }

script:
  - "travis_wait 30 sleep 1800 &"
  - |
    # 43min timeout
    tools/build_script.sh ${JOB}
    if [ $? -eq 0 ] || [ $? -eq 142 ]; then true; else exit 1; fi;

notifications:
  email:
    on_success: change
    on_failure: always