sudo: false
language: python
python:
  - "2.7"
branches:
  only:
    - master
    - develop
install:
  - pip install -r requirements.txt
script:
  - make pep8
  - make test
  - make coverage
notifications:
  secure: "V7hifJ0c08djuMmGgguzgwUXDkiTtYnIjmtHywn/wqq59U3hhnb7MzgIMxailf5hbh7eQp1rWEkUaJ1l5UCvbMaRFXYAalB3Yzg6gwGVMj3PpbqLKoDBIFC1wGXpQJD2ftaXAiBQId5F+f1xBL7fDcs5qChSDEJ0bNZujXXkOyg="

sudo: false
language: python
python:
  - "2.7"
branches:
  only:
    - master
  except:
    - travis-tested
install:
  - pip install -r requirements.txt
before_script:
  - git clone https://github.com/nimbis/nifty.git ./.nifty
script:
  - source .nifty/nifty-script
  - test_and_tag
  - make pep8
  - make coverage
notifications:
  secure: "V7hifJ0c08djuMmGgguzgwUXDkiTtYnIjmtHywn/wqq59U3hhnb7MzgIMxailf5hbh7eQp1rWEkUaJ1l5UCvbMaRFXYAalB3Yzg6gwGVMj3PpbqLKoDBIFC1wGXpQJD2ftaXAiBQId5F+f1xBL7fDcs5qChSDEJ0bNZujXXkOyg="

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.
