#!/bin/sh
#
# 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
#

#echo "$CIRCLE_PULL_REQUEST pull request"

# Run SonarQube only for master branch
if [ $CIRCLE_BRANCH = master ] ; then
  mvn verify license:check javadoc:javadoc sonar:sonar -Dsonar.login=$SONAR_ACCESS_TOKEN --batch-mode
else
  mvn verify license:check javadoc:javadoc --batch-mode
fi
