machine:
  services:
    - docker
  node:
    version:
      6.1.0
  python:
    version:
      2.7.3
dependencies:
  pre:
    - pip install -r requirements_dev.txt
    - pip install -r requirements.txt
    - pip install pymongo==3.2.1
    - make deps
  cache_directories:
    - node_modules/
    - client/node_modules/
test:
  override:
    - nosetests --with-xunit --xunit-file=$CIRCLE_TEST_REPORTS/junit.xml --with-coverage --cover-package=redash tests/
deployment:
  github_and_docker:
    branch: master
    commands:
      - make pack
      # Skipping uploads for now, until master is stable.
      # - make upload
      #- echo "client/app" >> .dockerignore
      #- docker pull redash/redash:latest
      #- docker build -t redash/redash:$(./manage.py version | sed -e "s/\+/./") .
      #- docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
      #- docker push redash/redash:$(./manage.py version | sed -e "s/\+/./")
notify:
  webhooks:
    - url: https://webhooks.gitter.im/e/895d09c3165a0913ac2f
general:
  branches:
    ignore:
      - gh-pages

machine:
  services:
    - docker
  node:
    version:
      6.1.0
  python:
    version:
      2.7.3
dependencies:
  pre:
    - pip install --upgrade setuptools
    - pip install -r requirements_dev.txt
    - pip install -r requirements.txt
    - pip install pymongo==3.2.1
    - make deps
  cache_directories:
    - node_modules/
    - client/node_modules/
test:
  override:
    - nosetests --with-xunit --xunit-file=$CIRCLE_TEST_REPORTS/junit.xml --with-coverage --cover-package=redash tests/
deployment:
  github_and_docker:
    branch: master
    commands:
      - make pack
      # Skipping uploads for now, until master is stable.
      # - make upload
      #- echo "client/app" >> .dockerignore
      #- docker pull redash/redash:latest
      #- docker build -t redash/redash:$(./manage.py version | sed -e "s/\+/./") .
      #- docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
      #- docker push redash/redash:$(./manage.py version | sed -e "s/\+/./")
notify:
  webhooks:
    - url: https://webhooks.gitter.im/e/895d09c3165a0913ac2f
general:
  branches:
    ignore:
      - gh-pages

Upgrade setuptools to install mock
Upgrade setuptools to install mock
