language: java
jdk: oraclejdk8

sudo: false
install: true # This runs the "true" command in the install phase; thus skipping install
script:
  - |
    if [[ "$TRAVIS_BRANCH" == master && "$TRAVIS_PULL_REQUEST" == false ]]
    then mvn deploy -s travis-settings.xml
    else mvn verify
    fi

# codecov
before_script:
  - pip install --user codecov
after_success:
  - codecov

# Because of bug: https://github.com/travis-ci/travis-ci/issues/3259
addons:
  apt:
    packages:
      - oracle-java8-installer

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

language: java
jdk: oraclejdk8

sudo: false
install: true # This runs the "true" command in the install phase; thus skipping install
script:
  - |
    if [[ "$TRAVIS_BRANCH" == master && "$TRAVIS_PULL_REQUEST" == false ]]
    then mvn deploy site-deploy -s travis-settings.xml
    else mvn verify
    fi

# codecov
before_script:
  - pip install --user codecov
after_success:
  - codecov

# Because of bug: https://github.com/travis-ci/travis-ci/issues/3259
addons:
  apt:
    packages:
      - oracle-java8-installer

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

Deploy maven site on every master commit
Deploy maven site on every master commit
