<commit_before>language: java

before_script:
#AUTH_RES=`curl -s --form project="$COVERITY_SCAN_PROJECT_NAME" --form token="$COVERITY_SCAN_TOKEN" $SCAN_URL/api/upload_permitted`
- echo $SCAN_URL
- AUTH_RES=`curl -s --form project="jakubuskuba/TravisTest" --form token="$COVERITY_SCAN_TOKEN" https://scan.coverity.com/api/upload_permitted`
- echo $AUTH_RES
- AUTH=`echo $AUTH_RES | ruby -e "require 'rubygems'; require 'json'; puts JSON[STDIN.read]['upload_permitted']"`
- if [ "$AUTH" = "false" ]; then
    echo -e "\033[33;1mXXXXXXXXXXXXXXXXXXCoverity Scan analysis authorized per quota.\033[0m"
  fi

script: mvn clean package

#after_success:
#  - ant instrument
#  - mvn test
#  - ant report
#  - mvn coveralls:report


#  - mvn jacoco:report org.eluder.coveralls:coveralls-maven-plugin:report

env:
  global:
   # The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
   #   via the "travis encrypt" command using the project repo's public key
   - secure: "<KEY>

addons:
  coverity_scan:
    project:
      name: "jakubuskuba/TravisTest"
      description: "Build submitted via Travis CI"
    notification_email: <EMAIL>
    build_command:   "mvn clean compile -DskipTests=true "
    branch_pattern: master<commit_msg>test1<commit_after>language: java

before_script:
#AUTH_RES=`curl -s --form project="$COVERITY_SCAN_PROJECT_NAME" --form token="$COVERITY_SCAN_TOKEN" $SCAN_URL/api/upload_permitted`
- AUTH_RES=`curl -s --form project="jakubuskuba/TravisTest" --form token="$COVERITY_SCAN_TOKEN" https://scan.coverity.com/api/upload_permitted`
- echo $AUTH_RES
- AUTH=`echo $AUTH_RES | ruby -e "require 'rubygems'; require 'json'; puts JSON[STDIN.read]['upload_permitted']"`
- echo AUTH
- if [ "$AUTH" = "false" ]; then echo -e "\033[33;1mXXXXXXXXXXXXXXXXXXCoverity Scan analysis authorized per quota.\033[0m" fi

script: mvn clean package

#after_success:
#  - ant instrument
#  - mvn test
#  - ant report
#  - mvn coveralls:report


#  - mvn jacoco:report org.eluder.coveralls:coveralls-maven-plugin:report

env:
  global:
   # The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
   #   via the "travis encrypt" command using the project repo's public key
   - secure: "<KEY>

addons:
  coverity_scan:
    project:
      name: "jakubuskuba/TravisTest"
      description: "Build submitted via Travis CI"
    notification_email: <EMAIL>
    build_command:   "mvn clean compile -DskipTests=true "
    branch_pattern: master
{'fraction_non_alphanumeric': 0.11925111925111925, 'fraction_numerical': 0.008547008547008548, 'mean_word_length': 4.4021978021978025, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 2, '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': '1394405', 'n_tokens_mistral': 883, 'n_tokens_neox': 851, 'n_words': 205}