.travis.yml 507 字节
Newer Older
C
cclauss 已提交
1 2
language: python
compiler: gcc
3
cache: ccache
C
cclauss 已提交
4 5 6 7 8
addons:
  apt:
    packages:
      - git
  # ssh_known_hosts: 13.229.163.131
9 10
env:
  - JOB=PRE_COMMIT
11 12 13
matrix:
  include:
    - python: 2.7
C
cclauss 已提交
14 15
    - python: 3.7
      dist: xenial  # required for Python >= 3.7 (travis-ci/travis-ci#9069)
16

17
before_install:
C
cclauss 已提交
18 19
  - pip install --upgrade pip
  - pip install pre-commit
20 21 22 23 24 25 26 27 28

script:
  - exit_code=0
  - .travis/precommit.sh || exit_code=$(( exit_code | $? ))

notifications:
  email:
    on_success: change
    on_failure: always