diff --git a/.travis.yml b/.travis.yml index 57440c21aaadc88252c6942ac5a349db00584f2a..d092dced69b33e49815f4a87ecf4231bd90c84ae 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,23 +1,22 @@ -language: cpp +language: python +compiler: gcc cache: ccache -dist: trusty -services: - - docker -os: - - linux -env: - - JOB=PRE_COMMIT - addons: apt: packages: - git - - python - - python-pip - - python2.7-dev - ssh_known_hosts: 13.229.163.131 + # ssh_known_hosts: 13.229.163.131 +env: + - JOB=PRE_COMMIT +matrix: + include: + - python: 2.7 + - python: 3.7 + dist: xenial # required for Python >= 3.7 (travis-ci/travis-ci#9069) + before_install: - - sudo pip install -U virtualenv pre-commit pip + - pip install --upgrade pip + - pip install pre-commit script: - exit_code=0