<commit_before>stages:
  - test
  - build
  - deploy

lint:
  image: node:8
  stage: test
  cache:
    key: "v2-$CI_COMMIT_REF_NAME"
    paths:
      - node_modules/
      - .yarn/
  script:
    - yarn config set cache-folder .yarn
    - yarn
    - npm run lint

build:
  image: node:8
  stage: build
  cache:
    key: "v2-$CI_COMMIT_REF_NAME"
    paths:
      - node_modules/
      - .yarn/
    policy: pull
  script:
    - yarn config set cache-folder .yarn
    - yarn
    - npm run build
  artifacts:
    expire_in: 3 days
    paths:
      - dist
  except:
    - live

deploy_master:
  stage: deploy
  script:
    - curl -X POST -d '' https://api.netlify.com/build_hooks/$NETLIFY_MASTER
  only:
    - master<commit_msg>Make some tweaks to gitlab-ci<commit_after>stages:
  - test
  - build
  - deploy

lint:
  image: node:8
  stage: test
  cache:
    key: "v2-$CI_COMMIT_REF_NAME"
    paths:
      - node_modules/
      - .yarn/
  before_script:
    - yarn config set cache-folder .yarn
    - yarn
  script:
    - npm run lint

build:
  image: node:8
  stage: build
  cache:
    key: "v2-$CI_COMMIT_REF_NAME"
    paths:
      - node_modules/
      - .yarn/
    policy: pull
  before_script:
    - yarn config set cache-folder .yarn
    - yarn
  script:
    - npm run build
  artifacts:
    expire_in: 3 days
    paths:
      - dist
  except:
    - live

deploy_master:
  image: alpine:latest
  stage: deploy
  before_script:
    - apk add --no-cache curl
  script:
    - curl -X POST -d '' https://api.netlify.com/build_hooks/$NETLIFY_MASTER
  only:
    - master
{'fraction_non_alphanumeric': 0.10358056265984655, 'fraction_numerical': 0.00639386189258312, 'mean_word_length': 1.9417293233082706, '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': '2041703', 'n_tokens_mistral': 613, 'n_tokens_neox': 595, 'n_words': 146}