---
machine:
    python:
        version: 3.4.2
    environment:
        DATABASE_URL: "postgres://ubuntu:@localhost/circle_test"

dependencies:
    override:
        - pip install -r requirements/development.txt
        - gem install coveralls-lcov
        - npm install jshint mocha blanket mocha-lcov-reporter moment moment-timezone

test:
    override:
        - flake8
        - node_modules/.bin/jshint */static/*/js
        - coverage run manage.py test --settings=eggtimer.settings
        - node_modules/.bin/mocha */tests/static/*/js/*
        - node_modules/.bin/mocha --reporter mocha-lcov-reporter */tests/static/*/js/* > coverage.info
        - coveralls-lcov -v -n coverage.info > coverage.json
        - DJANGO_SETTINGS_MODULE=eggtimer.settings PYTHONPATH=. coveralls --merge coverage.json

deployment:
    production:
        branch: master
        commands:
            - sh scripts/deploy_to_heroku.sh circle

---
machine:
    python:
        version: 3.4.2
    environment:
        DATABASE_URL: "postgres://ubuntu:@localhost/circle_test"
        DJANGO_SETTINGS_MODULE: "eggtimer.settings"

dependencies:
    override:
        - pip install -r requirements/development.txt
        - gem install coveralls-lcov
        - npm install jshint mocha blanket mocha-lcov-reporter moment moment-timezone

test:
    override:
        - flake8
        - node_modules/.bin/jshint */static/*/js
        - coverage run manage.py test
        - node_modules/.bin/mocha */tests/static/*/js/*
        - node_modules/.bin/mocha --reporter mocha-lcov-reporter */tests/static/*/js/* > coverage.info
        - coveralls-lcov -v -n coverage.info > coverage.json
        - PYTHONPATH=. coveralls --merge coverage.json

deployment:
    production:
        branch: master
        commands:
            - sh scripts/deploy_to_heroku.sh circle

Move env vars to machine
Move env vars to machine
