<commit_before>#!/bin/bash

set -e
set -o pipefail

npm install

REMOTE=upstream
BRANCH=validated-merge
USERNAME=ciscospark
PROJECT=spark-js-sdk

rm -rf ./reports

# Ensure there are no builds running/enqueued for the validated merge branch
# (jenkins should be handling the queuing, not circle)
./tooling/circle --auth ${CIRCLE_CI_AUTHTOKEN} \
  --username ${USERNAME} \
  --project ${PROJECT} \
  --branch ${BRANCH} \
  verify-no-builds-on-branch

git push -f ${REMOTE} HEAD:validated-merge

./tooling/circle --auth ${CIRCLE_CI_AUTHTOKEN} \
  --username ${USERNAME} \
  --project ${PROJECT} \
  --branch ${BRANCH} \
  trigger-build

# TODO update circle.yml cache_directories
<commit_msg>chore(build): tell validated-merge about internal npm<commit_after>#!/bin/bash

set -e
set -o pipefail

export NPM_CONFIG_REGISTRY=http://engci-maven-master.cisco.com/artifactory/api/npm/webex-npm-group

npm install

REMOTE=upstream
BRANCH=validated-merge
USERNAME=ciscospark
PROJECT=spark-js-sdk

rm -rf ./reports

# Ensure there are no builds running/enqueued for the validated merge branch
# (jenkins should be handling the queuing, not circle)
./tooling/circle --auth ${CIRCLE_CI_AUTHTOKEN} \
  --username ${USERNAME} \
  --project ${PROJECT} \
  --branch ${BRANCH} \
  verify-no-builds-on-branch

git push -f ${REMOTE} HEAD:validated-merge

./tooling/circle --auth ${CIRCLE_CI_AUTHTOKEN} \
  --username ${USERNAME} \
  --project ${PROJECT} \
  --branch ${BRANCH} \
  trigger-build

# TODO update circle.yml cache_directories

{'fraction_non_alphanumeric': 0.13289473684210526, 'fraction_numerical': 0.0, 'mean_word_length': 3.8132911392405062, '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': '6582780', 'n_tokens_mistral': 574, 'n_tokens_neox': 545, 'n_words': 133}