From 91188c6b541b030d7ec3cb3a4b8796bef1c548ce Mon Sep 17 00:00:00 2001 From: cclauss Date: Tue, 19 Mar 2019 11:36:57 +0100 Subject: [PATCH] Travis CI: Run Python 2 and Python 3 tests in parallel --- .travis.yml | 31 +++++++++++++++++++++---------- 1 file changed, 21 insertions(+), 10 deletions(-) diff --git a/.travis.yml b/.travis.yml index 94e00a1..e385c5c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,5 @@ language: cpp cache: ccache -sudo: required -dist: trusty services: - docker os: @@ -9,14 +7,27 @@ os: env: - JOB=PRE_COMMIT -addons: - apt: - packages: - - git - - python - - python-pip - - python2.7-dev - ssh_known_hosts: 13.229.163.131 +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 + addons: + apt: + packages: + - git + - python3.7 + - python3.7-pip + - python3.7-dev + ssh_known_hosts: 13.229.163.131 + before_install: - sudo pip install -U virtualenv pre-commit pip -- GitLab