sudo: false
language: java
cache:
  directories:
  - "$HOME/.m2/repository"
jdk:
- oraclejdk8
- oraclejdk7
- openjdk6
after_success:
   mvn package
deploy:
  provider: releases
  api_key:
    secure: CkiqeHfVkf6HeYW6wpBDg8j4GcW3+6I3EKqPXX8CI3oZdM32RU2jU8Jo977g2tLpMvPQRMO+pFXUMTBU1ScTG7eQz0fYoseoCfrTNU2ANHh6vdrIVEvxKXAj2tf4VxLiEVj97PJVHvQfD+XaT6BvIwIWlxNb3bycsXM4KGGlYZg=
  file: $TRAVIS_BUILD_DIR/target/rabbitmq-flume-plugin-standalone-$TRAVIS_TAG.jar
  on:
    repo: aweber/rabbitmq-flume-plugin
    jdk: oraclejdk7
    tags: true
    all_branches: true

sudo: false
language: java
cache:
  directories:
  - "$HOME/.m2/repository"
jdk:
- oraclejdk8
- oraclejdk7
- openjdk6
after_success:
  - bash <(curl -s https://codecov.io/bash)
before_deploy:
   mvn package
deploy:
  provider: releases
  api_key:
    secure: CkiqeHfVkf6HeYW6wpBDg8j4GcW3+6I3EKqPXX8CI3oZdM32RU2jU8Jo977g2tLpMvPQRMO+pFXUMTBU1ScTG7eQz0fYoseoCfrTNU2ANHh6vdrIVEvxKXAj2tf4VxLiEVj97PJVHvQfD+XaT6BvIwIWlxNb3bycsXM4KGGlYZg=
  file: $TRAVIS_BUILD_DIR/target/rabbitmq-flume-plugin-standalone-$TRAVIS_TAG.jar
  on:
    repo: aweber/rabbitmq-flume-plugin
    jdk: oraclejdk7
    tags: true
    all_branches: true

Add code coverage, only package on deploy
Add code coverage, only package on deploy
