<commit_before>version: 2.1
orbs:
  k8s: circleci/kubernetes@0.7.0
jobs:
  deploy:
    docker:
      - image: circleci/node:9.8.0-stretch
    steps:
      - restore_cache:
          keys:
            - source-v1-{{ .Branch }}-{{ .Revision }}
            - source-v1-{{ .Branch }}-
            - source-v1-
      - checkout
      - save_cache:
          key: source-v1-{{ .Branch }}-{{ .Revision }}
          paths:
            - ".git"
      - restore_cache:
          keys:
            - node-{{ checksum "package-lock.json" }}
      - run: |
          npm install
          npm install -g grunt
      #- save_cache:
      #    keys: node-{{ checksum "package-lock.json" }}
      #    paths:
      #      - "node_modules"
      - run: |
          grunt releaseci
      #- setup_remote_docker
      #- k8s/install-kubectl
      #- run: |
      #    REPO_NAME=$(git remote get-url origin | sed -E "s/.+:[0-9a-z_-]+\/([0-9a-z_-]+)(\.git)?/\1/")
      #    docker build -t ${DOCKHUB_ORGANISATION}/${REPO_NAME}:${CIRCLE_SHA1} .
      #    docker build -t ${DOCKHUB_ORGANISATION}/${REPO_NAME}:latest .
      #- run: |
      #    REPO_NAME=$(git remote get-url origin | sed -E "s/.+:[0-9a-z_-]+\/([0-9a-z_-]+)(\.git)?/\1/")
      #    docker login -u $DOCKERHUB_USERNAME -p $DOCKERHUB_PASSWORD
      #    docker push ${DOCKHUB_ORGANISATION}/${REPO_NAME}:${CIRCLE_SHA1}
      #    docker push ${DOCKHUB_ORGANISATION}/${REPO_NAME}:latest
      #- run: |
      #    REPO_NAME=$(git remote get-url origin | sed -E "s/.+:[0-9a-z_-]+\/([0-9a-z_-]+)(\.git)?/\1/")
      #    kubectl --server=https://${KUBE_SERVER_IP} --insecure-skip-tls-verify=true --token=$SERVICEACCOUNT_TOKEN set image deployment/staging-binary-com staging-binary-com=${DOCKHUB_ORGANISATION}/${REPO_NAME}:${CIRCLE_SHA1}

workflows:
  version: 2
  tagged:
    jobs:
      - deploy
<commit_msg>test node_modules caching<commit_after>version: 2.1
orbs:
  k8s: circleci/kubernetes@0.7.0
jobs:
  deploy:
    docker:
      - image: circleci/node:9.8.0-stretch
    steps:
      - restore_cache:
          keys:
            - source-v1-{{ .Branch }}-{{ .Revision }}
            - source-v1-{{ .Branch }}-
            - source-v1-
      - checkout
      - save_cache:
          key: source-v1-{{ .Branch }}-{{ .Revision }}
          paths:
            - ".git"
      - restore_cache:
          keys:
            - node-{{ checksum "package-lock.json" }}
      - run: |
          npm install
      - save_cache:
          key: node-{{ checksum "package-lock.json" }}
          paths:
            - "node_modules"
      #- save_cache:
      #    paths:
      #      - "node_modules"
      - run: |
          grunt releaseci
      #- setup_remote_docker
      #- k8s/install-kubectl
      #- run: |
      #    REPO_NAME=$(git remote get-url origin | sed -E "s/.+:[0-9a-z_-]+\/([0-9a-z_-]+)(\.git)?/\1/")
      #    docker build -t ${DOCKHUB_ORGANISATION}/${REPO_NAME}:${CIRCLE_SHA1} .
      #    docker build -t ${DOCKHUB_ORGANISATION}/${REPO_NAME}:latest .
      #- run: |
      #    REPO_NAME=$(git remote get-url origin | sed -E "s/.+:[0-9a-z_-]+\/([0-9a-z_-]+)(\.git)?/\1/")
      #    docker login -u $DOCKERHUB_USERNAME -p $DOCKERHUB_PASSWORD
      #    docker push ${DOCKHUB_ORGANISATION}/${REPO_NAME}:${CIRCLE_SHA1}
      #    docker push ${DOCKHUB_ORGANISATION}/${REPO_NAME}:latest
      #- run: |
      #    REPO_NAME=$(git remote get-url origin | sed -E "s/.+:[0-9a-z_-]+\/([0-9a-z_-]+)(\.git)?/\1/")
      #    kubectl --server=https://${KUBE_SERVER_IP} --insecure-skip-tls-verify=true --token=$SERVICEACCOUNT_TOKEN set image deployment/staging-binary-com staging-binary-com=${DOCKHUB_ORGANISATION}/${REPO_NAME}:${CIRCLE_SHA1}

workflows:
  version: 2
  tagged:
    jobs:
      - deploy

{'fraction_non_alphanumeric': 0.18157543391188252, 'fraction_numerical': 0.017623497997329773, 'mean_word_length': 1.897138437741686, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '3667866', 'n_tokens_mistral': 1472, 'n_tokens_neox': 1429, 'n_words': 219}