sudo: false
language: python
python:
  - "2.7"
env:
  global:
    - NIFTY_TRAVIS_CACHE_REPO=https://github.com/nimbis/travis-cache-public.git
install:
  - make reqs
before_script:
  - git clone https://github.com/nimbis/nifty.git ./.nifty
script:
  - source .nifty/nifty-script
  - verify_coverage_improvement
  - make pep8
  - make flake8
  - make test
after_success:
  - coveralls

sudo: false
language: python
python:
  - "2.7"
branches:
  except:
    travis-tested
env:
  global:
    - NIFTY_TRAVIS_CACHE_REPO=https://github.com/nimbis/travis-cache-public.git
install:
  - make reqs
before_script:
  - git clone https://github.com/nimbis/nifty.git ./.nifty
script:
  - source .nifty/nifty-script
  - verify_coverage_improvement
  - test_and_tag
  - make pep8
  - make flake8
after_success:
  - coveralls

Test and tag commits pushed to master.
Test and tag commits pushed to master.

This is done through a new method in the nifty script: test_and_tag. A travis
tested master branch push will be tagged with travis-tested. Our sites
repository will always pull from this latest and tested master branch.
