<commit_before>machine:
  services:
    - docker
  node:
    version:
      0.12.4
  python:
    version:
      2.7.3
dependencies:
  pre:
    - pip install -r requirements_dev.txt
    - pip install -r requirements.txt
    - if [ "$CIRCLE_BRANCH" = "master" ]; then make deps; fi
  cache_directories:
    - rd_ui/node_modules/
    - rd_ui/app/bower_components/
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
      - make upload
      - echo "rd_ui/app" >> .dockerignore
      - docker build -t redash/redash:$(./manage.py version | sed -e "s/\+/./") .
      - docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
      - docker pull redash/redash:latest
      - docker push redash/redash:$(./manage.py version | sed -e "s/\+/./")
notify:
  webhooks:
    - url: https://webhooks.gitter.im/e/895d09c3165a0913ac2f
general:
  branches:<commit_msg>Pull latest docker image before building<commit_after>machine:
  services:
    - docker
  node:
    version:
      0.12.4
  python:
    version:
      2.7.3
dependencies:
  pre:
    - pip install -r requirements_dev.txt
    - pip install -r requirements.txt
    - if [ "$CIRCLE_BRANCH" = "master" ]; then make deps; fi
  cache_directories:
    - rd_ui/node_modules/
    - rd_ui/app/bower_components/
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
      - make upload
      - echo "rd_ui/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:
{'fraction_non_alphanumeric': 0.13275613275613277, 'fraction_numerical': 0.020202020202020204, 'mean_word_length': 2.443708609271523, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1908646', 'n_tokens_mistral': 802, 'n_tokens_neox': 761, 'n_words': 166}