sudo: required

language: java
jdk:
   - oraclejdk7

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

install: /bin/true
script: mvn deploy -s ./travis-settings.xml -V -Prun-its -q -B -e 
sudo: required

language: java
jdk:
   - oraclejdk7

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

install: /bin/true
script: 
  - '[ "${TRAVIS_PULL_REQUEST}" = "false" ] && mvn -s ./travis-settings.xml -Prun-its -q -B -e install || mvn deploy -s ./travis-settings.xml -V -Prun-its -q -B -e' 
Make deployment conditional on whether it's a PR build.
Make deployment conditional on whether it's a PR build.
