<commit_before>language: java
jdk: oraclejdk8

sudo: false
install: true

addons:
  sonarqube:
    organization: "docbleach"
    token:
      secure: "ejEHtwUs4Zr0DT8uMbjXl4TiCo6bIMIVm5M6nyLyu+YUNY30TQgpNcJIDqabsHlLan6SMIZEnJ3XAOc6VqkrRDowvPPeXpSAmxcDMQrlvNyzzhBc/CTImXyZqHyjNMsivIdq+j4WQNfUpVAlPGmRacm0AokOsGj5ipo5ofYu5jc3O+6Dz8D77GjE5q91XbujmyoeLb56eF5dpT3AM7UKdStX3OS1RIBffpPuPxOqCuTSoBHIhjtpkmbNkoPMQqQsiC3QXcv604p+cVML3wOk2sDtzVH5EdLHqBFFPD9l36QBicbIXqgMVsSjw0C8fWcvue3S+p3cF3V9R/2NDXMdLV8Euc5Tu/abLNNQDcmlZAe0/Py89pHTtrPzzgixPXzrmxK7r9GckGjyQTypikKWKW3frLD6meDXt5LRSXfohKNHRfZ5hKW9xzVVKAtkRuNBhT1GSdELPXuT2rnzmzTkT/jIMp9HKOyz/TA81uZQM0L6i3W91m+UC8mI3hifh3EvWS1NAnukCtb9MJqXRNBpXhSk3Cf/G3H6m+Jo7c9Vd3o1lvXCsageHyTls9eJk8H3DOdUBazrg7MiqfRPsmvbv9gEoXwzUmLmH6Dj16XJquMvP7d/z/mlEjRoQDLPo6DoYFpVivRS1rBfoP7k8frR46bKqYjWe684mNX1w2zDfZY="
  apt:
    packages:
    - libc6:i386
    - libx11-6:i386
    - libxext6:i386
    - libxrender1:i386
    - libxi6:i386
    - libxtst6:i386

env:
  global:
   # COVERITY_SCAN_TOKEN
   - secure: "<KEY>

cache:
  directories:
  - '$HOME/.m2'
  - '$HOME/.sonar/cache'

script:
  - mvn org.jacoco:jacoco-maven-plugin:prepare-agent package com.srcclr:srcclr-maven-plugin:scan
  - ./scripts/jet-build.sh

before_deploy:
  - zip -r cli/target/docbleach_linux_amd64.zip cli/target/jet/app/

deploy:
  - provider: script
    script: scripts/publish.sh
    on:
      branch: master
      repo: docbleach/DocBleach
      tags: true
  - provider: releases
    skip_cleanup: true
    api_key:
      secure: "<KEY>
    file:
      - cli/target/docbleach.jar
      - cli/target/docbleach_linux_amd64.zip
    on:
      repo: docbleach/DocBleach
      tags: true<commit_msg>Don't run the Source:Clear scan without a token<commit_after>language: java
jdk: oraclejdk8

sudo: false
install: true

addons:
  sonarqube:
    organization: "docbleach"
    token:
      secure: "<KEY>
  apt:
    packages:
    - libc6:i386
    - libx11-6:i386
    - libxext6:i386
    - libxrender1:i386
    - libxi6:i386
    - libxtst6:i386

env:
  global:
   # COVERITY_SCAN_TOKEN
   - secure: "<KEY>

cache:
  directories:
  - '$HOME/.m2'
  - '$HOME/.sonar/cache'

script:
  - mvn org.jacoco:jacoco-maven-plugin:prepare-agent package com.srcclr:srcclr-maven-plugin:scan
  - [ -v "$SRCCLR_API_TOKEN" ] && mvn com.srcclr:srcclr-maven-plugin:scan
  - ./scripts/jet-build.sh

before_deploy:
  - zip -r cli/target/docbleach_linux_amd64.zip cli/target/jet/app/

deploy:
  - provider: script
    script: scripts/publish.sh
    on:
      branch: master
      repo: docbleach/DocBleach
      tags: true
  - provider: releases
    skip_cleanup: true
    api_key:
      secure: "<KEY>
    file:
      - cli/target/docbleach.jar
      - cli/target/docbleach_linux_amd64.zip
    on:
      repo: docbleach/DocBleach
      tags: true
{'fraction_non_alphanumeric': 0.09381663113006397, 'fraction_numerical': 0.059346126510305616, 'mean_word_length': 3.645214521452145, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, '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': '283903', 'n_tokens_mistral': 1441, 'n_tokens_neox': 1350, 'n_words': 150}