.travis.yml 820 字节
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
matrix:
  include:
    - python: 2.7
      addons:
        apt:
          packages:
            - git
            - python
            - python-pip
            - python2.7-dev
        ssh_known_hosts: 13.229.163.131
C
cclauss 已提交
21 22
    - python: 3.7
      dist: xenial  # required for Python >= 3.7 (travis-ci/travis-ci#9069)
23 24
      addons:
        apt:
C
cclauss 已提交
25 26
          sources:
            - deadsnakes
27 28
          packages:
            - git
C
cclauss 已提交
29
            - python3.7-venv
C
cclauss 已提交
30
        ssh_known_hosts: 13.229.163.131
31

32
before_install:
C
cclauss 已提交
33
  - python --version
34 35 36 37 38 39 40 41 42 43
  - 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