<commit_before>version: 2

jobs:
  build:
    docker:
      - image: integrationcheckout/ecommerce:wordpress4.9.2.wocommerce3.2.6
    working_directory: ~/cko_wp
    steps:
      - checkout
      - run:
          name: Refresh Wordpress and Install Checkout
          command: |
            sudo service apache2 restart && sudo service mysql restart
            cd /var/www/html/wordpress/wp-content/plugins/ && sudo mv ~/cko_wp/woocommerce-checkout-non-pci-gateway . && sudo mv ~/cko_wp/woocommerce-checkout-pci-gateway .
      - run:
          name: Refresh Chrome
          command: |
            apt-get update -y && apt-get install google-chrome-stable -y 
      - run:
          name: Install dependencies
          command: |
            cd ~/cko_wp/tests && npm i 
      - run:
          name: Run Tests
          command: |
            cd ~/cko_wp/tests && ./node_modules/.bin/chimp config/chimp.js --fail-fast
      - store_artifacts:
          path: ~/cko_wp/tests/screenshots
          destination: Failed-Tests<commit_msg>Added sudo command to test env code<commit_after>version: 2

jobs:
  build:
    docker:
      - image: integrationcheckout/ecommerce:wordpress4.9.2.wocommerce3.2.6
    working_directory: ~/cko_wp
    steps:
      - checkout
      - run:
          name: Refresh Wordpress and Install Checkout
          command: |
            sudo service apache2 restart && sudo service mysql restart
            cd /var/www/html/wordpress/wp-content/plugins/ && sudo mv ~/cko_wp/woocommerce-checkout-non-pci-gateway . && sudo mv ~/cko_wp/woocommerce-checkout-pci-gateway .
      - run:
          name: Refresh Chrome
          command: |
            sudo apt-get install google-chrome-stable -y 
      - run:
          name: Install dependencies
          command: |
            cd ~/cko_wp/tests && npm i 
      - run:
          name: Run Tests
          command: |
            cd ~/cko_wp/tests && ./node_modules/.bin/chimp config/chimp.js --fail-fast
      - store_artifacts:
          path: ~/cko_wp/tests/screenshots
          destination: Failed-Tests
{'fraction_non_alphanumeric': 0.10115606936416185, 'fraction_numerical': 0.007707129094412331, 'mean_word_length': 1.8220108695652173, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '3667887', 'n_tokens_mistral': 665, 'n_tokens_neox': 618, 'n_words': 145}