<commit_before>version: 2

workflows:
  version: 2
  build:
    jobs:
      - install_and_build
      - deploy:
          requires:
            - install_and_build
          filters:
            branches:
              only:
                - master

jobs:
  install_and_build:
    working_directory: ~/stockflux
    docker:
      - image: circleci/node:10.15.1
    steps:
      - checkout:
          path: ~/stockflux
      - run:
          name: Root package install
          command: npm ci
      - run:
          name: Bootstrap packages
          command: npm run bootstrap
      - run:
          name: Build packages
          command: npm run build
      - persist_to_workspace:
          root: ~/stockflux
          paths: .
  deploy:
    working_directory: ~/stockflux
    docker:
      - image: circleci/python:2.7-jessie
    steps:
      - attach_workspace:
          at: ~/stockflux
      - run:
          name: Install AWS CLI
          command: pip install awscli --user --upgrade
      - run:
          name: Upload chart
          command: ~/.local/bin/aws s3 sync stockflux-chart/build "s3://stockflux-public-$CIRCLE_BRANCH/artifacts/stockflux-chart/13.0.0/" --delete
      - run:
          name: Upload container
          command: ~/.local/bin/aws s3 sync stockflux-container/build "s3://stockflux-public-$CIRCLE_BRANCH/artifacts/stockflux-container/13.0.0/" --delete
      - run:
          name: Upload news
          command: ~/.local/bin/aws s3 sync stockflux-news/build "s3://stockflux-public-$CIRCLE_BRANCH/artifacts/stockflux-news/13.0.0/" --delete
      - run:
          name: Upload watchlist
          command: ~/.local/bin/aws s3 sync stockflux-watchlist/build "s3://stockflux-public-$CIRCLE_BRANCH/artifacts/stockflux-watchlist/13.0.0/" --delete
      - run:
          name: Upload launcher
          command: ~/.local/bin/aws s3 sync stockflux-launcher/build "s3://stockflux-public-$CIRCLE_BRANCH/artifacts/stockflux-launcher/13.0.0/" --delete
<commit_msg>Update paths to build directorys in deploy job and add integrate-lerna branch to list of deployable branches (for testing)<commit_after>version: 2

workflows:
  version: 2
  build:
    jobs:
      - install_and_build
      - deploy:
          requires:
            - install_and_build
          filters:
            branches:
              only:
                - master
                - integrate-lerna

jobs:
  install_and_build:
    working_directory: ~/stockflux
    docker:
      - image: circleci/node:10.15.1
    steps:
      - checkout:
          path: ~/stockflux
      - run:
          name: Root package install
          command: npm ci
      - run:
          name: Bootstrap packages
          command: npm run bootstrap
      - run:
          name: Build packages
          command: npm run build
      - persist_to_workspace:
          root: ~/stockflux
          paths: .
  deploy:
    working_directory: ~/stockflux
    docker:
      - image: circleci/python:2.7-jessie
    steps:
      - attach_workspace:
          at: ~/stockflux
      - run:
          name: Install AWS CLI
          command: pip install awscli --user --upgrade
      - run:
          name: Upload chart
          command: ~/.local/bin/aws s3 sync packages/stockflux-chart/build "s3://stockflux-public--$CIRCLE_BRANCH/artifacts/stockflux-chart/13.0.0/" --delete
      - run:
          name: Upload container
          command: ~/.local/bin/aws s3 sync packages/stockflux-container/build "s3://stockflux-public--$CIRCLE_BRANCH/artifacts/stockflux-container/13.0.0/" --delete
      - run:
          name: Upload news
          command: ~/.local/bin/aws s3 sync packages/stockflux-news/build "s3://stockflux-public--$CIRCLE_BRANCH/artifacts/stockflux-news/13.0.0/" --delete
      - run:
          name: Upload watchlist
          command: ~/.local/bin/aws s3 sync packages/stockflux-watchlist/build "s3://stockflux-public--$CIRCLE_BRANCH/artifacts/stockflux-watchlist/13.0.0/" --delete
      - run:
          name: Upload launcher
          command: ~/.local/bin/aws s3 sync packages/stockflux-launcher/build "s3://stockflux-public--$CIRCLE_BRANCH/artifacts/stockflux-launcher/13.0.0/" --delete

{'fraction_non_alphanumeric': 0.10865915087550972, 'fraction_numerical': 0.01870952266730631, 'mean_word_length': 1.8522571819425444, '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': '5589341', 'n_tokens_mistral': 1371, 'n_tokens_neox': 1284, 'n_words': 279}