<commit_before>machine:
  services:
    - docker

dependencies:
  override:
    - docker info
    - docker version

    - cp test/Dockerfile-ubuntu14.04 Dockerfile
    - docker build  -t monit_trusty   .

    - cp test/Dockerfile-ubuntu12.04 Dockerfile
    - docker build  -t monit_precise  .

    - cp test/Dockerfile-debian8 Dockerfile
    - docker build  -t monit_jessie   .

    - cp test/Dockerfile-debian7 Dockerfile
    - docker build  -t monit_wheezy   .

    - cp test/Dockerfile-centos7 Dockerfile
    - docker build  -t monit_centos7  .

    - cp test/Dockerfile-centos6 Dockerfile
    - docker build  -t monit_centos6  .

test:
  override:
    - docker run -d -v $(pwd):/data --name c1 monit_trusty
    - docker kill c1 ; sleep 10

    - docker run -d -v $(pwd):/data --name c2 monit_precise
    - docker kill c2 ; sleep 10

    - docker run -d -v $(pwd):/data --name c3 monit_jessie
    - docker kill c3 ; sleep 10

    - docker run -d -v $(pwd):/data --name c4 monit_wheezy
    - docker kill c4 ; sleep 10

    - docker run -d -v $(pwd):/data --name c5 monit_centos7
    - docker kill c5 ; sleep 10

    - docker run -d -v $(pwd):/data --name c6 monit_centos6
    - docker kill c6 ; sleep 10

    - echo "==> Validating the test results..."
    - grep '^The Monit daemon.*uptime' result-ubuntu14.04
    - grep '^The Monit daemon.*uptime' result-ubuntu12.04
    - grep '^The Monit daemon.*uptime' result-debian8
    - grep '^The Monit daemon.*uptime' result-debian7
    - grep '^The Monit daemon.*uptime' result-centos7<commit_msg>Update: simplify circle.yml to leverage CircleCI's upgrading to Docker 1.6.2<commit_after>machine:
  services:
    - docker

dependencies:
  override:
    - docker info
    - docker version

    - docker build  -f test/Dockerfile-ubuntu14.04  -t monit_trusty   .
    - docker build  -f test/Dockerfile-ubuntu12.04  -t monit_precise  .
    - docker build  -f test/Dockerfile-debian8      -t monit_jessie   .
    - docker build  -f test/Dockerfile-debian7      -t monit_wheezy   .
    - docker build  -f test/Dockerfile-centos7      -t monit_centos7  .
    - docker build  -f test/Dockerfile-centos6      -t monit_centos6  .

test:
  override:
    - docker run -d -v $(pwd):/data --name c1 monit_trusty
    - docker run -d -v $(pwd):/data --name c2 monit_precise
    - docker run -d -v $(pwd):/data --name c3 monit_jessie
    - docker run -d -v $(pwd):/data --name c4 monit_wheezy
    - docker run -d -v $(pwd):/data --name c5 monit_centos7
    - docker run -d -v $(pwd):/data --name c6 monit_centos6
    - sleep 30

    - echo "==> Validating the test results..."
    - grep '^The Monit daemon.*uptime' result-ubuntu14.04
    - grep '^The Monit daemon.*uptime' result-ubuntu12.04
    - grep '^The Monit daemon.*uptime' result-debian8
    - grep '^The Monit daemon.*uptime' result-debian7
    - grep '^The Monit daemon.*uptime' result-centos7
{'fraction_non_alphanumeric': 0.1144244105409154, 'fraction_numerical': 0.03085991678224688, 'mean_word_length': 2.2821387940841866, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '1108804', 'n_tokens_mistral': 1177, 'n_tokens_neox': 1043, 'n_words': 296}