Travis CI improvements (#37840)

This commit is contained in:
Ville Skyttä 2020-07-14 10:29:56 +03:00 committed by GitHub
parent 81914258e9
commit 22f17a1887
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,3 @@
sudo: false
dist: bionic dist: bionic
addons: addons:
apt: apt:
@ -14,7 +13,17 @@ addons:
sources: sources:
- sourceline: ppa:savoury1/ffmpeg4 - sourceline: ppa:savoury1/ffmpeg4
matrix: python:
- "3.7.1"
- "3.8"
env:
- TOX_ARGS="-- --test-group-count 4 --test-group 1"
- TOX_ARGS="-- --test-group-count 4 --test-group 2"
- TOX_ARGS="-- --test-group-count 4 --test-group 3"
- TOX_ARGS="-- --test-group-count 4 --test-group 4"
jobs:
fast_finish: true fast_finish: true
include: include:
- python: "3.7.1" - python: "3.7.1"
@ -23,13 +32,11 @@ matrix:
env: TOXENV=pylint PYLINT_ARGS=--jobs=0 TRAVIS_WAIT=30 env: TOXENV=pylint PYLINT_ARGS=--jobs=0 TRAVIS_WAIT=30
- python: "3.7.1" - python: "3.7.1"
env: TOXENV=typing env: TOXENV=typing
- python: "3.7.1"
env: TOXENV=py37
cache: cache:
pip: true pip: true
directories: directories:
- $HOME/.cache/pre-commit - $HOME/.cache/pre-commit
install: pip install -U tox install: pip install -U tox tox-travis
language: python language: python
script: ${TRAVIS_WAIT:+travis_wait $TRAVIS_WAIT} tox --develop script: ${TRAVIS_WAIT:+travis_wait $TRAVIS_WAIT} tox --develop ${TOX_ARGS-}