Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8748847
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T12:35:44+00:00 2026-06-13T12:35:44+00:00

Is there a way to configure travis-ci to make the Python versions dependent on

  • 0

Is there a way to configure travis-ci to make the Python versions dependent on a certain env var?

Please consider the following travis.yml config:

language: python
python:
  - "2.5"
  - "2.6"
  - "2.7"
env:
  - DJANGO=1.3.4
  - DJANGO=1.4.2
  - DJANGO=https://github.com/django/django/zipball/master
install:
  - pip install -q Django==$DJANGO --use-mirrors
  - pip install -e . --use-mirrors
script:
  - python src/runtests.py

Among Django 1.3 (DJANGO=1.3.4) and 1.4 (DJANGO=1.4.2) i also want to test against the latest development version of Django (DJANGO=https://github.com/django/django/zipball/master), which is basically Django 1.5.

The problem i see is that travis-ci will automatically run the integration against all specified Python versions. Django 1.5 however doesn’t support Python 2.5 anymore. Is it possible to omit it for the Django development version so that i get integrations like this only:

  • DJANGO=1.3.4 –> python “2.5”, “2.6”, “2.7”
  • DJANGO=1.4.2 –> python “2.5”, “2.6”, “2.7”
  • DJANGO=https://github.com/django/django/zipball/master –> python “2.6”, “2.7”

UPDATE:

Here’s a link to a live example based on Odi’s answer which i’ve been using successfully for a few months:
https://github.com/deschler/django-modeltranslation/blob/master/.travis.yml

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T12:35:45+00:00Added an answer on June 13, 2026 at 12:35 pm

    You can specify configurations that you want to exclude from the build matrix (i.e. combinations that you don’t want to test).

    Add this to your .travis.yml:

    matrix:
      exclude:
       - python: "2.5"
         env: DJANGO=https://github.com/django/django/zipball/master
    

    Note: only exact matches will be excluded.

    See the build documentation (section The Build Matrix) for further information.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there a way to configure a given target to only compile under certain
Is there any way to configure Eclipse to behave more like VisualStudio? The following
Is there any way to configure the titanium android such that it won't show
Is there a way to configure a ListView in such a way that it
Is there any way to configure second level retries without taking an additional dependency
Is there a way to configure nautilus to open a file into an existing
is there a way to configure WebSphere Portal to accept AJP connections? E.g. Tomcat/JBoss
Is there any way to configure Doxygen to include the log from SVN for
is there a way to configure trac to use more than one svn repo
Is there a way to configure Jenkins to resume a (broken) Maven build from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.