.travis.yml 806 字节
Newer Older
1 2 3 4 5 6 7 8 9
language: cpp
cache: ccache
services:
  - docker
os:
  - linux
env:
  - JOB=PRE_COMMIT

10 11 12 13 14 15 16 17 18 19 20 21
matrix:
  include:
    - python: 2.7
      addons:
        apt:
          packages:
            - git
            - python
            - python-pip
            - python2.7-dev
        ssh_known_hosts: 13.229.163.131
    - python: 3.7
C
cclauss 已提交
22
      dist: xenial  # required for Python >= 3.7 (travis-ci/travis-ci#9069)
23 24 25 26 27 28 29 30 31
      addons:
        apt:
          packages:
            - git
            - python3.7
            - python3.7-pip
            - python3.7-dev
        ssh_known_hosts: 13.229.163.131

32 33 34 35 36 37 38 39 40 41 42
before_install:
  - sudo pip install -U virtualenv pre-commit pip

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

notifications:
  email:
    on_success: change
    on_failure: always