dist: focal
language: python

addons:
  apt:
    packages:
      - python-dev
      - libxml2-dev
      - libxmlsec1-dev

python:
  - 3.5

git:
  depth: false


services:
  - mongodb

cache:
  directories:
    - $HOME/edxapp_toxenv/
  pip: true

install:
  - pip install tox

env:
  global:
    # Avoid caching edx-platform's entry_points
    - TRAVIS_FIXES="pip install -r requirements/edx/local.in"
    - BOTO_CONFIG="/etc/nonexistent.cfg"

jobs:
  include:
    - name: pep8
    - name: common-minimal
    - name: common
    - name: lms-1
    - name: lms-2
    - name: mte
    - name: studio

script: tox -e $TRAVIS_JOB_NAME

branches:
  # Reduce our TravisCI usage by skipping all pull request branches to reduce effect on the environment (earth),
  # so `continuous-integration/travis-ci/push` shouldn't be built anymore.
  only:
    - /^appsembler\/(tahoe|hawthorn)\/(develop|master)$/
    - main


dist: focal
language: python

addons:
  apt:
    packages:
      - python-dev
      - libxml2-dev
      - libxmlsec1-dev

python:
  - 3.5

git:
  depth: false


services:
  - mongodb

cache:
  directories:
    - $HOME/edxapp_toxenv/
  pip: true

install:
  - pip install tox

env:
  global:
    # Avoid caching edx-platform's entry_points
    - TRAVIS_FIXES="pip install -r requirements/edx/local.in"
    - BOTO_CONFIG="/etc/nonexistent.cfg"

jobs:
  exclude:
    # Disable all jobs on TravisCI on Juniper branches.
    # It's not helpful at all for Juniper.
    # See https://appsembler.atlassian.net/browse/ENGOPS-60?focusedCommentId=29611
    - python: 3.5
#  include:
#    - name: pep8
#    - name: common-minimal
#    - name: common
#    - name: lms-1
#    - name: lms-2
#    - name: mte
#    - name: studio

script: tox -e $TRAVIS_JOB_NAME

branches:
  # Reduce our TravisCI usage by skipping all pull request branches to reduce effect on the environment (earth),
  # so `continuous-integration/travis-ci/push` shouldn't be built anymore.
  only:
    - /^appsembler\/(tahoe|hawthorn)\/(develop|master)$/

Disable Travis on Juniper branches
ENGOPS-60: Disable Travis on Juniper branches
