sudo: false

language: python

matrix:
  include:
    - python: 2.7
      dist: trusty
      sudo: false
    - python: 3.4
      dist: trusty
      sudo: false
    - python: 3.5
      dist: trusty
      sudo: false
    - python: 3.6
      dist: trusty
      sudo: false
    - python: 3.7
      dist: xenial
      sudo: true
    - python: nightly
      dist: trusty
      sudo: false
  allow_failures:
    - python: nightly

install:
  - pip install -r requirements-travis.txt

before_script:
  - flake8
  - ./bin/fetch-configlet
  - ./bin/configlet lint .
  - ./bin/check-readmes.sh

script:
  - ./test/check-exercises.py

language: python

matrix:
  include:
    - python: 2.7
      dist: trusty
    - python: 3.4
      dist: trusty
    - python: 3.5
      dist: trusty
    - python: 3.6
      dist: trusty
    - python: 3.7
      dist: xenial
    - python: nightly
      dist: trusty
  allow_failures:
    - python: nightly

install:
  - pip install -r requirements-travis.txt

before_script:
  - flake8
  - ./bin/fetch-configlet
  - ./bin/configlet lint .
  - ./bin/check-readmes.sh

script:
  - ./test/check-exercises.py

Switch Travis builds to VM-based infrastructure
Switch Travis builds to VM-based infrastructure

See the following for more details:
- https://docs.travis-ci.com/user/reference/trusty#container-based-infrastructure
- https://blog.travis-ci.com/2018-10-04-combining-linux-infrastructures