<commit_before>sudo: false
language: java

before_script:
  - psql -U postgres -c "create user test with password '<PASSWORD>';"
  - psql -c 'create database test owner test;' -U postgres
  - echo "MAVEN_OPTS='-Xmx1g -Dgpg.skip=true'" > ~/.mavenrc

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

script:
  # make sure previous build artifacts are not used for subsequent builds
  - cd pgjdbc && git reset --hard origin/master
  - rm -rf $HOME/.m2/repository/org/postgresql || true
  - export JDK6_HOME=$(jdk_switcher home openjdk6)
  - export JDK7_HOME=$(jdk_switcher home openjdk7)
  - export JDK8_HOME=$(jdk_switcher home oraclejdk8)
  - envsubst < toolchains.xml > ~/.m2/toolchains.xml
  - ./travis_build.sh
  # To avoid useless S3 cache updates (https://github.com/travis-ci/travis-ci/issues/1441#issuecomment-67607074)
  #- mkdir /tmp/cache-trick
  #- mv $HOME/.m2/repository/org/postgresql /tmp/cache-trick/

before_cache:
  # No sense in caching current build artifacts
  rm -rf $HOME/.m2/repository/org/postgresql

# Skip default "mvn install" issued by Travis
# Root project cannot be compiled with older JDKs, so it makes sense to just skip the step
install: true

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

matrix:
  fast_finish: true
  include:
    - jdk: openjdk7
      addons:
        postgresql: "9.4"
      env: PG_VERSION=9.4
    - jdk: openjdk7
      addons:
        postgresql: "9.3"
      env: PG_VERSION=9.3
    - jdk: openjdk7
      addons:
        postgresql: "9.2"
      env: PG_VERSION=9.2
    - jdk: openjdk7
      addons:
        postgresql: "9.1"
      env: PG_VERSION=9.1

# Deploy snapshots to Maven Central
after_success:
  - "test $TRAVIS_PULL_REQUEST == 'false' && test $TRAVIS_BRANCH == 'master' && test $PG_VERSION == '9.4' && ./travis_deploy.sh"
<commit_msg>chore: use travis_build.sh from jre7, not from pgjdbc submodule<commit_after>sudo: false
language: java

before_script:
  - psql -U postgres -c "create user test with password '<PASSWORD>';"
  - psql -c 'create database test owner test;' -U postgres
  - echo "MAVEN_OPTS='-Xmx1g -Dgpg.skip=true'" > ~/.mavenrc

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

script:
  # make sure previous build artifacts are not used for subsequent builds
  - cd pgjdbc && git reset --hard origin/master && cd ..
  - rm -rf $HOME/.m2/repository/org/postgresql || true
  - export JDK6_HOME=$(jdk_switcher home openjdk6)
  - export JDK7_HOME=$(jdk_switcher home openjdk7)
  - export JDK8_HOME=$(jdk_switcher home oraclejdk8)
  - envsubst < toolchains.xml > ~/.m2/toolchains.xml
  - ./travis_build.sh
  # To avoid useless S3 cache updates (https://github.com/travis-ci/travis-ci/issues/1441#issuecomment-67607074)
  #- mkdir /tmp/cache-trick
  #- mv $HOME/.m2/repository/org/postgresql /tmp/cache-trick/

before_cache:
  # No sense in caching current build artifacts
  rm -rf $HOME/.m2/repository/org/postgresql

# Skip default "mvn install" issued by Travis
# Root project cannot be compiled with older JDKs, so it makes sense to just skip the step
install: true

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

matrix:
  fast_finish: true
  include:
    - jdk: openjdk7
      addons:
        postgresql: "9.4"
      env: PG_VERSION=9.4
    - jdk: openjdk7
      addons:
        postgresql: "9.3"
      env: PG_VERSION=9.3
    - jdk: openjdk7
      addons:
        postgresql: "9.2"
      env: PG_VERSION=9.2
    - jdk: openjdk7
      addons:
        postgresql: "9.1"
      env: PG_VERSION=9.1

# Deploy snapshots to Maven Central
after_success:
  - "test $TRAVIS_PULL_REQUEST == 'false' && test $TRAVIS_BRANCH == 'master' && test $PG_VERSION == '9.4' && ./travis_deploy.sh"

{'fraction_non_alphanumeric': 0.12286411716842961, 'fraction_numerical': 0.025766205587198263, 'mean_word_length': 2.9784250269687162, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 13, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '165036', 'n_tokens_mistral': 1407, 'n_tokens_neox': 1373, 'n_words': 355}