language: java

# clone "travis" branch containing deployment settings
before_install: git clone -b travis https://github.com/daisy-consortium/maven-parents.git target/travis

# main task, run the verify goal
script: mvn verify

# if the build succeeds, deploy the artifact (tests are skipped)
after_success: mvn deploy -DskipTests -Dinvoker.skip=true --settings target/travis/settings.xml

# whitelist; only deploy master branch
branches:
  only:
  - master

env:
  global:
    - secure: "fZwP2yFnNu7Lw4iq+pRt0elfCdznruIEqaWXcii5z4xgfEQrsNtMmeb+5WdMx/tAz0k9aGULJ3dCXJxKVk01Gg0DeeVMVommog3bNY8rrKsefSY17T2pSha7HQUkLw1L90BanmY0pzZa+1GXmgRvIuuzNAZlPgiJk+CGZZH4P4w="
    - secure: "D8fsAkDqbH3SjxO8zElpjwK5Cqz4pQf2cgdEQbPxRkDWobEn8ctCTkBKM3GsAKjAW0Be/PgIPUcnSuqVUpQ363QSg7avqgnzl6KYv3X+/oUWg+5mqnEZJJA2hFL9eCwvR9Q+5FuKMdNokZRO7pLd3DwqTo+kFtBiD8lyx3rHitI="
language: java

# main task, run the verify goal
script: mvn verify

# if the build succeeds, deploy the artifact (tests are skipped)
after_success:
  - git clone -b travis https://github.com/daisy-consortium/maven-parents.git target/travis
  - ./target/travis/maven_deploy.sh

# whitelist; only deploy master branch
branches:
  only:
  - master

env:
  global:
    - secure: "fZwP2yFnNu7Lw4iq+pRt0elfCdznruIEqaWXcii5z4xgfEQrsNtMmeb+5WdMx/tAz0k9aGULJ3dCXJxKVk01Gg0DeeVMVommog3bNY8rrKsefSY17T2pSha7HQUkLw1L90BanmY0pzZa+1GXmgRvIuuzNAZlPgiJk+CGZZH4P4w="
    - secure: "D8fsAkDqbH3SjxO8zElpjwK5Cqz4pQf2cgdEQbPxRkDWobEn8ctCTkBKM3GsAKjAW0Be/PgIPUcnSuqVUpQ363QSg7avqgnzl6KYv3X+/oUWg+5mqnEZJJA2hFL9eCwvR9Q+5FuKMdNokZRO7pLd3DwqTo+kFtBiD8lyx3rHitI="

Configure Travis to use the shared Maven deploy script
Configure Travis to use the shared Maven deploy script

[ci skip]
