From 12b78165394dee01da782481ad28401a13fdc33c Mon Sep 17 00:00:00 2001 From: Adar Nimrod <nimrod@shore.co.il> Date: Wed, 17 May 2017 21:45:30 +0300 Subject: [PATCH] - Use a shorter, faster install step just for pre-commit. --- .travis.yml | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index 4fe1440..fba962b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,7 +9,6 @@ env: - VBOX_MEMORY=2048 - VBOX_HWVIRTEX=off matrix: - - TOXENV=pre-commit - TOXENV=openbsd60 - TOXENV=xenial - TOXENV=trusty @@ -17,10 +16,7 @@ env: - &stretch TOXENV=stretch - &jessie TOXENV=jessie - TOXENV=wheezy -matrix: - fast_finish: True - allow_failures: - - env: *stretch + cache: - pip - directories: @@ -31,7 +27,7 @@ install: - sudo apt-get install -y linux-headers-$(uname -r) virtualbox - wget https://releases.hashicorp.com/vagrant/1.9.1/vagrant_1.9.1_x86_64.deb - sudo dpkg -i vagrant_1.9.1_x86_64.deb - - pip install tox-travis | cat + - &pip_install pip install tox-travis | cat script: - travis_wait 45 tox @@ -40,3 +36,14 @@ notifications: webhooks: https://galaxy.ansible.com/api/v1/notifications/ email: false on_failure: never + +matrix: + fast_finish: True + allow_failures: + - env: *stretch + include: + - env: + TOXENV: pre-commit + install: + - *pip_install + sudo: False -- GitLab