Optimize CircleCI build (#756)

Optimize CircleCI build

Signed-off-by: Dominic Schabel <dominic.schabel@bosch-si.com>
This commit is contained in:
Dominic Schabel
2018-10-16 17:00:00 +02:00
committed by GitHub
parent 1aed625fe6
commit ca65687fd5
2 changed files with 4 additions and 9 deletions

18
.circleci/run-qa.sh Executable file
View File

@@ -0,0 +1,18 @@
#!/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 sonar:sonar -Dsonar.login=$SONAR_ACCESS_TOKEN --batch-mode
else
mvn verify license:check --batch-mode
fi