<commit_before>version: 2

jobs:

  build:
    working_directory: ~/wdi

    docker:
      - image: circleci/python:3.6.1

      - image: circleci/postgres:9.6.3

    environment:
      - VENV_NAME:  "tpot-wh"

      - VENV_DIR: "~/pyenv/tpot-wh"

    steps:
      - run:
          name: Create working directories
          pwd: ~
          command: |
            rm -rfv ~/pyenv && mkdir -pv ~/pyenv
            rm -rfv ~/wdi && mkdir -pv ~/wdi

      - checkout

      - run:
          name: Activate python virtual environment
          pwd: ~/pyenv
          command: |
              python3 -m venv "${VENV_NAME}"
              . tpot-wh/bin/activate

      - run:
          name: Install required python modules
          pwd: ~/wdi/tpot-warehouse
          command: pip install -r requirements.dev.txt

      - run:
          name: Update database connection parameters
          pwd: ~/wdi/tpot-warehouse
          command: mv -v conf/db.dev.yml conf/db.yml

      - run:
          name: Run transactional database application tests
          pwd: ~/wdi/tpot-warehouse
          command: pytest -v --name transactional tests/test_dbtransactional.py<commit_msg>testing circleci<commit_after>version: 2

jobs:

  build:
    working_directory: ~/wdi

    docker:
      - image: circleci/python:3.6.1

      - image: circleci/postgres:9.6.3

    environment:
      - VENV_NAME:  "tpot-wh"

      - VENV_DIR: "~/pyenv/tpot-wh"

    steps:
      - run:
          name: Create working directories
          pwd: ~
          command: |
            rm -rfv ~/pyenv && mkdir -pv ~/pyenv
            rm -rfv ~/wdi && mkdir -pv ~/wdi

      - checkout

      - run:
          name: Activate python virtual environment
          pwd: ~/pyenv
          command: |
              python3 -m venv "${VENV_NAME}"
              . tpot-wh/bin/activate

      - run:
          name: Install required python modules
          pwd: ~/wdi/tpot-warehouse
          command: echo $(pwd) && pip install -r requirements.dev.txt

      - run:
          name: Update database connection parameters
          pwd: <PASSWORD>/<PASSWORD>
          command: mv -v conf/db.dev.yml conf/db.yml

      - run:
          name: Run transactional database application tests
          pwd: ~/<PASSWORD>/tpot-warehouse
          command: pytest -v --name transactional tests/test_dbtransactional.py
{'fraction_non_alphanumeric': 0.10490693739424704, 'fraction_numerical': 0.00676818950930626, 'mean_word_length': 1.573449401523395, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, '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': '2294153', 'n_tokens_mistral': 772, 'n_tokens_neox': 735, 'n_words': 186}