<commit_before>machine:
  services:
    - docker

general:
  branches:
    ignore:
      - gh-pages # list of branches to ignore

dependencies:
  cache_directories:
    - "~/docker"
  override:
    - docker info
    - docker build -t portefaix/elasticsearch:1.5 1.5
    - docker build -t portefaix/elasticsearch:1.6 1.6
    - docker build -t portefaix/elasticsearch:1.7 1.7
    - docker build -t portefaix/elasticsearch:2.0 2.0
    - docker build -t portefaix/elasticsearch:2.1 2.1

test:
  override:
    - docker run -d -p 9215:9200 -p 9315:9300 portefaix/elasticsearch:1.5; sleep 20
    - curl --retry 10 --retry-delay 5 -v http://localhost:9215
    - docker run -d -p 9216:9200 -p 9316:9300 portefaix/elasticsearch:1.6; sleep 20
    - curl --retry 10 --retry-delay 5 -v http://localhost:9216
    - docker run -d -p 9217:9200 -p 9317:9300 portefaix/elasticsearch:1.7; sleep 20
    - curl --retry 10 --retry-delay 5 -v http://localhost:9217
    - docker run -d -p 9218:9200 -p 9318:9300 portefaix/elasticsearch:2.0; sleep 20
    - curl --retry 10 --retry-delay 5 -v http://localhost:9218
    - docker run -d -p 9219:9200 -p 9319:9300 portefaix/elasticsearch:2.1; sleep 20
    - curl --retry 10 --retry-delay 5 -v http://localhost:9219

#deployment:
#  hub: 
#    branch: master
#    commands:
#      - docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
#      - docker push portefaix/elasticsearch<commit_msg>Update CircleCI build<commit_after>machine:
  services:
    - docker

general:
  branches:
    ignore:
      - gh-pages # list of branches to ignore

dependencies:
  cache_directories:
    - "~/docker"
  override:
    - docker info
    - docker build -t portefaix/elasticsearch:1.5 1.5
    - docker build -t portefaix/elasticsearch:1.6 1.6
    - docker build -t portefaix/elasticsearch:1.7 1.7
    - docker build -t portefaix/elasticsearch:2.0 2.0
    - docker build -t portefaix/elasticsearch:2.1 2.1

test:
  override:
    - docker run -d -p 9215:9200 -p 9315:9300 -name es1.5 portefaix/elasticsearch:1.5; sleep 20
    - curl --retry 10 --retry-delay 5 -v http://localhost:9215
    - docker stop es1.5
    - docker run -d -p 9216:9200 -p 9316:9300 -name es1.6 portefaix/elasticsearch:1.6; sleep 20
    - curl --retry 10 --retry-delay 5 -v http://localhost:9216
    - docker stop es1.6
    - docker run -d -p 9217:9200 -p 9317:9300 -name es1.7 portefaix/elasticsearch:1.7; sleep 20
    - curl --retry 10 --retry-delay 5 -v http://localhost:9217
    - docker stop es1.7
    - docker run -d -p 9218:9200 -p 9318:9300 -name es2.0 portefaix/elasticsearch:2.0; sleep 20
    - curl --retry 10 --retry-delay 5 -v http://localhost:9218
    - docker stop es2.0
    - docker run -d -p 9219:9200 -p 9319:9300 -name es2.1 portefaix/elasticsearch:2.1; sleep 20
    - curl --retry 10 --retry-delay 5 -v http://localhost:9219
    - docker stop es2.1

#deployment:
#  hub: 
#    branch: master
#    commands:
#      - docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
#      - docker push portefaix/elasticsearch
{'fraction_non_alphanumeric': 0.12343234323432344, 'fraction_numerical': 0.10891089108910891, 'mean_word_length': 2.4879171461449943, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, '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': '4372269', 'n_tokens_mistral': 1326, 'n_tokens_neox': 1148, 'n_words': 318}