<commit_before>language: java

# we test at Ubuntu Trusty (Ubuntu 14.04 LTS)
# see https://docs.travis-ci.com/user/trusty-ci-environment/
# This environment is continuously updated as described in https://docs.travis-ci.com/user/build-environment-updates/
dist: trusty
sudo: required

services:
  - postgresql
  - mysql

env:
  global:
    - GRADLE_OPTS=-Dorg.gradle.daemon=false
  matrix:
    - TEST_SUITE=check OPTIONS=modernizer
    - TEST_SUITE=fetcherTest
    - TEST_SUITE=databaseTest
    - TEST_SUITE=guiTest

matrix:
    fast_finish: true
    allow_failures:
      - env: TEST_SUITE=fetcherTest

# JavaFX localization tests need a running X environment
before_install:
  - "export DISPLAY=:99.0"
  - "sh -e /etc/init.d/xvfb start"
  - sleep 3 # give xvfb some time to start

install: true

before_script:
  - psql -c 'create database jabref;' -U postgres
  - mysql -u root -e 'create database jabref'

script:
  # -Dscan enables the Gradle build scan, which can be used to investiage the time each action consumes
  # For more information see https://gradle.com/scans/get-started
  - if [ "$TEST_SUITE" != "guiTest" ]; then ./gradlew $TEST_SUITE $OPTIONS -Dscan; fi
  - if [ "$TEST_SUITE" == "guiTest" ]; then ./buildres/gui-tests.sh; fi

after_success:
  # enable codecov report
  - ./gradlew jacocoTestReport
  - bash <(curl -s https://codecov.io/bash)

after_failure:
  # show test results if build fails
  - $TRAVIS_BUILD_DIR/scripts/after-failure.sh

# cache gradle dependencies
# https://docs.travis-ci.com/user/languages/java#Caching
before_cache:
  - rm -f $HOME/.gradle/caches/modules-2/modules-2.lock<commit_msg>Add checkstyle as separate test (#3026)<commit_after>language: java

# we test at Ubuntu Trusty (Ubuntu 14.04 LTS)
# see https://docs.travis-ci.com/user/trusty-ci-environment/
# This environment is continuously updated as described in https://docs.travis-ci.com/user/build-environment-updates/
dist: trusty
sudo: required

services:
  - postgresql
  - mysql

env:
  global:
    - GRADLE_OPTS=-Dorg.gradle.daemon=false
  matrix:
    - TEST_SUITE=check OPTIONS=modernizer
    - TEST_SUITE=fetcherTest
    - TEST_SUITE=databaseTest
    - TEST_SUITE=guiTest
    - TEST_SUITE=checkstyle

matrix:
    fast_finish: true
    allow_failures:
      - env: TEST_SUITE=fetcherTest

# JavaFX localization tests need a running X environment
before_install:
  - "export DISPLAY=:99.0"
  - "sh -e /etc/init.d/xvfb start"
  - sleep 3 # give xvfb some time to start

install: true

before_script:
  - psql -c 'create database jabref;' -U postgres
  - mysql -u root -e 'create database jabref'

script:
  # -Dscan enables the Gradle build scan, which can be used to investiage the time each action consumes
  # For more information see https://gradle.com/scans/get-started
  - if [ "$TEST_SUITE" != "guiTest" ] && [ "$TEST_SUITE" != "checkstyle" ]; then ./gradlew $TEST_SUITE $OPTIONS -Dscan; fi
  - if [ "$TEST_SUITE" == "checkstyle" ]; then ./gradlew checkstyleMain checkstyleTest checkstyleJmh; fi
  - if [ "$TEST_SUITE" == "guiTest" ]; then ./buildres/gui-tests.sh; fi

after_success:
  # enable codecov report
  - ./gradlew jacocoTestReport
  - bash <(curl -s https://codecov.io/bash)

after_failure:
  # show test results if build fails
  - $TRAVIS_BUILD_DIR/scripts/after-failure.sh

# cache gradle dependencies
# https://docs.travis-ci.com/user/languages/java#Caching
before_cache:
  - rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
{'fraction_non_alphanumeric': 0.11574074074074074, 'fraction_numerical': 0.006944444444444444, 'mean_word_length': 3.55467720685112, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 10, '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': '7405714', 'n_tokens_mistral': 1254, 'n_tokens_neox': 1203, 'n_words': 310}