language: python

python:
  - 3.6

env:
  matrix:
    - TEST_LATEST_ONLY=0
    - TEST_LATEST_ONLY=1

services:
  - docker

before_install:
  - pip install nose
  - pip install nose-exclude
  - pip install codecov

install:
  - pip install -r test_requirements.txt
  - pip install -r requirements.txt
  - printf "ubuntu:.*\ndebian:.*\nalpine:.*\npython:.*" > no-gc-images.txt
  - docker run -d -v /var/run/docker.sock:/var/run/docker.sock:ro -v $PWD:/working -e EXCLUDE_FROM_GC=/working/no-gc-images.txt spotify/docker-gc watch -n 300 /docker-gc

script:
  - nosetests -v --with-coverage --cover-package=useintest --cover-inclusive --exclude-test=useintest.tests.services._common.TestDockerisedServiceControllerSubclass --exclude-test=useintest.tests.services._common.create_tests

after_success:
  - codecov

language: python

python:
  - 3.6

env:
  matrix:
    - TEST_LATEST_ONLY=0
    - TEST_LATEST_ONLY=1

services:
  - docker

before_install:
  - pip install codecov

install:
  - pip install -r test_requirements.txt
  - pip install -r requirements.txt
  - printf "ubuntu:.*\ndebian:.*\nalpine:.*\npython:.*" > no-gc-images.txt
  - docker run -d -v /var/run/docker.sock:/var/run/docker.sock:ro -v $PWD:/working -e EXCLUDE_FROM_GC=/working/no-gc-images.txt spotify/docker-gc watch -n 300 /docker-gc

script:
  - PYTHONPATH=. coverage run -m unittest discover -v -s useintest/tests
  - coverage run setup.py install
  - coverage combine -a
  - coverage report

after_success:
  - codecov

Switch away from using nosetest.
Switch away from using nosetest.
