#
# Copyright (c) 2015 Bosch Software Innovations GmbH and others.
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v1.0
# which accompanies this distribution, and is available at
# http://www.eclipse.org/legal/epl-v10.html
#

machine:
  java:
    version: oraclejdk8
  services:
    - rabbitmq-server
  environment:
    _JAVA_OPTIONS: "-Xms512m -Xmx1024m"
  pre:
   - sudo rabbitmq-plugins enable rabbitmq_management
    
dependencies:
  override:
    - mvn install -DskipTests
    
test:
  override:
    - sh sonarCircleCi.sh
  post:
    - mkdir -p $CIRCLE_TEST_REPORTS/junit/
    - find . -type f -regex ".*/target/surefire-reports/.*xml" -exec cp {} $CIRCLE_TEST_REPORTS/junit/ \;
general:
  artifacts:
    - "*.jar"
    - "pom.xml"
notify:
  webhooks:
    # gitter hook
    - url: https://webhooks.gitter.im/e/a20a6bc2bda5a8a77d39
