language: python
python:
  - "2.7"
  - "3.7"
matrix:
  allow_failures:
    - python: "3.7"
  fast_finish: true

# Pin Ubuntu to Trusty for the moment for Python 2.6 support
dist: trusty

# Cache the dependencies installed by pip
cache: pip
# Avoid pip log from affecting cache
before_cache: rm -fv ~/.cache/pip/log/debug.log

install:
  # Base requirements for ssm
  - pip install -r requirements.txt
  # Additional requirements for the unit and coverage tests
  - pip install -r requirements-test.txt

# Commands to prepare environment for the test
before_script:
  - export TMPDIR=$PWD/tmp
  - mkdir $TMPDIR
  - export PYTHONPATH=$PYTHONPATH:`pwd -P`
  - cd test

script: coverage run --branch --source=ssm,bin -m unittest2 discover --buffer

after_success:
  - coveralls
  - codecov

os: linux
language: python
python:
  - "2.7"
  - "3.7"
jobs:
  allow_failures:
    - python: "3.7"
  fast_finish: true

# Cache the dependencies installed by pip
cache: pip
# Avoid pip log from affecting cache
before_cache: rm -fv ~/.cache/pip/log/debug.log

install:
  # Base requirements for ssm
  - pip install -r requirements.txt
  # Additional requirements for the unit and coverage tests
  - pip install -r requirements-test.txt

# Commands to prepare environment for the test
before_script:
  - export TMPDIR=$PWD/tmp
  - mkdir $TMPDIR
  - export PYTHONPATH=$PYTHONPATH:`pwd -P`
  - cd test

script: coverage run --branch --source=ssm,bin -m unittest2 discover --buffer

after_success:
  - coveralls
  - codecov

Update Ubuntu version used in builds and tidy
Update Ubuntu version used in builds and tidy

Specify Travis build OS and use 'jobs' instead of its old alias
'matirx'.
