<commit_before>version: 2
jobs:
  test:
    machine: true
    steps:
      - checkout
      - run: |
          docker-compose -f docker-compose.test.yml -p ci build
          docker-compose -f docker-compose.test.yml -p ci up -d
      - run: 'docker logs -f ci_sut_1; echo "Exited with status code: $(docker wait ci_sut_1)"; exit $(docker wait ci_sut_1)'

  deploy_dev:
    machine: true
    steps:
      - checkout

      # Login to docker
      - run: docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS

      # Build our images
      - run: docker-compose -f docker-compose.test.yml -p ci build

      # Tag ahead of release
      - run: |
          docker tag ci_web1804-php7:latest mattrayner/lamp:latest
          docker tag ci_web1804-php7:latest mattrayner/lamp:latest-1804
          docker tag ci_web1804-php7:latest mattrayner/lamp:latest-1804-php7
          docker tag ci_web1604-php7:latest mattrayner/lamp:latest-1604
          docker tag ci_web1604-php7:latest mattrayner/lamp:latest-1604-php7

      # Push images
      - run: |
          docker push mattrayner/lamp:latest
          docker push mattrayner/lamp:latest-1804
          docker push mattrayner/lamp:latest-1804-php7
          docker push mattrayner/lamp:latest-1604
          docker push mattrayner/lamp:latest-1604-php7

workflows:
  version: 2
  test-and-deploy:
    jobs:
      - test
      - deploy:
          requires:
            - test
          filters:
            branches:
              only: master
<commit_msg>Update circle config<commit_after>version: 2
jobs:
  test:
    machine: true
    steps:
      - checkout
      - run: |
          docker-compose -f docker-compose.test.yml -p ci build
          docker-compose -f docker-compose.test.yml -p ci up -d
      - run: cd tests && ./test.sh
#      - run: 'docker logs -f ci_sut_1; echo "Exited with status code: $(docker wait ci_sut_1)"; exit $(docker wait ci_sut_1)'

  deploy_dev:
    machine: true
    steps:
      - checkout

      # Login to docker
      - run: docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS

      # Build our images
      - run: docker-compose -f docker-compose.test.yml -p ci build

      # Tag ahead of release
      - run: |
          docker tag ci_web1804-php7:latest mattrayner/lamp:latest
          docker tag ci_web1804-php7:latest mattrayner/lamp:latest-1804
          docker tag ci_web1804-php7:latest mattrayner/lamp:latest-1804-php7
          docker tag ci_web1604-php7:latest mattrayner/lamp:latest-1604
          docker tag ci_web1604-php7:latest mattrayner/lamp:latest-1604-php7

      # Push images
      - run: |
          docker push mattrayner/lamp:latest
          docker push mattrayner/lamp:latest-1804
          docker push mattrayner/lamp:latest-1804-php7
          docker push mattrayner/lamp:latest-1604
          docker push mattrayner/lamp:latest-1604-php7

workflows:
  version: 2
  test-and-deploy:
    jobs:
      - test
      - deploy:
          requires:
            - test
          filters:
            branches:
              only: master

{'fraction_non_alphanumeric': 0.08542549722856212, 'fraction_numerical': 0.04303880013042061, 'mean_word_length': 2.016715830875123, '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': '5283422', 'n_tokens_mistral': 1152, 'n_tokens_neox': 1029, 'n_words': 250}