From 539254316c0dfa6a8bc7ea233f3c60b9bd5a4af5 Mon Sep 17 00:00:00 2001 From: Dario Marcelino Date: Sat, 6 Jan 2018 12:05:05 +0000 Subject: [PATCH] Travis: reduce the number of jobs by using matrix include And test mysql and postgres --- .travis.yml | 47 ++++++++++++++++++++++++++++++++++------------- 1 file changed, 34 insertions(+), 13 deletions(-) diff --git a/.travis.yml b/.travis.yml index b38f115..b79e734 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,21 +1,42 @@ language: python python: - - "2.7" - - "3.4" - - "3.5" - "3.6" env: - - WAGTAIL="wagtail>=1.4,<1.5" - - WAGTAIL="wagtail>=1.5,<1.6" - - WAGTAIL="wagtail>=1.6,<1.7" - - WAGTAIL="wagtail>=1.7,<1.8" - - WAGTAIL="wagtail>=1.8,<1.9" - - WAGTAIL="wagtail>=1.9,<1.10" - - WAGTAIL="wagtail>=1.10,<1.11" - - WAGTAIL="wagtail>=1.11,<1.12" - - WAGTAIL="wagtail>=1.12,<1.13" - - WAGTAIL="wagtail>=1.13,<1.14" + - WAGTAIL="wagtail>=1.13,<1.14" DB=sqlite +matrix: + include: + # Latest Wagtail version + - env: WAGTAIL="wagtail>=1.13,<1.14" DB=sqlite + - env: WAGTAIL="wagtail>=1.13,<1.14" DB=postgres + - env: WAGTAIL="wagtail>=1.13,<1.14" DB=mysql + - python: "3.5" + - python: "3.4" + - python: "2.7" + # Past Wagtail versions + - python: "3.6" + env: WAGTAIL="wagtail>=1.12,<1.13" + - python: "3.6" + env: WAGTAIL="wagtail>=1.11,<1.12" + - python: "3.6" + env: WAGTAIL="wagtail>=1.10,<1.11" + - python: "3.5" + env: WAGTAIL="wagtail>=1.9,<1.10" + - python: "3.3" # Wagtail 1.9 was the latest tested against 3.3 + env: WAGTAIL="wagtail>=1.9,<1.10" + - python: "3.5" + env: WAGTAIL="wagtail>=1.8,<1.9" + - python: "3.5" + env: WAGTAIL="wagtail>=1.6,<1.7" + - python: "3.5" + env: WAGTAIL="wagtail>=1.5,<1.6" + - python: "3.5" + env: WAGTAIL="wagtail>=1.4,<1.5" +before_script: + - mysql -e 'create database wagtail_modeltranslation;' + - psql -c 'create database wagtail_modeltranslation;' -U postgres install: + - if [[ $DB == mysql ]] && [[ ${PYTHON:0:1} == "2" ]]; then pip install -q mysql-python; elif [[ $DB == mysql ]] && [[ ${PYTHON:0:1} == "3" ]]; then pip install -q mysqlclient; fi + - if [[ $DB == postgres ]]; then pip install -q psycopg2; fi - pip install --upgrade -q pip setuptools - pip install -q $WAGTAIL - pip install --process-dependency-links -e .