* Add CircleCi 2.0 config file Signed-off-by: Jeroen Laverman <jeroen.laverman@bosch-si.com> * Fix JVM options and use Maven batch-mode to reduce output Signed-off-by: Jeroen Laverman <jeroen.laverman@bosch-si.com> * Add RabbitMQ Signed-off-by: Jeroen Laverman <jeroen.laverman@bosch-si.com> * Store test-dependencies also in cache Signed-off-by: Jeroen Laverman <jeroen.laverman@bosch-si.com> * remove old cricleCi config Signed-off-by: Jeroen Laverman <jeroen.laverman@bosch-si.com> * remove redundant comments Signed-off-by: Jeroen Laverman <jeroen.laverman@bosch-si.com> * Add line break Signed-off-by: Jeroen Laverman <jeroen.laverman@bosch-si.com>
This commit is contained in:
committed by
Dominic Schabel
parent
f541dab3a7
commit
95f98e9aaa
60
.circleci/config.yml
Normal file
60
.circleci/config.yml
Normal file
@@ -0,0 +1,60 @@
|
|||||||
|
#
|
||||||
|
# Copyright (c) 2018 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
|
||||||
|
#
|
||||||
|
|
||||||
|
version: 2
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
|
||||||
|
working_directory: ~/hawkBit
|
||||||
|
|
||||||
|
docker:
|
||||||
|
- image: circleci/openjdk:8-jdk-browsers
|
||||||
|
environment:
|
||||||
|
_JAVA_OPTIONS: "-Xms512m -Xmx1024m"
|
||||||
|
|
||||||
|
- image: rabbitmq:3-management
|
||||||
|
environment:
|
||||||
|
RABBITMQ_DEFAULT_VHOST: "/"
|
||||||
|
|
||||||
|
steps:
|
||||||
|
|
||||||
|
- checkout
|
||||||
|
|
||||||
|
- restore_cache:
|
||||||
|
key: circleci-hawkbit-{{ checksum "pom.xml" }}
|
||||||
|
|
||||||
|
# Install dependencies
|
||||||
|
- run:
|
||||||
|
name: Install without testing
|
||||||
|
command: mvn install --batch-mode -DskipTests
|
||||||
|
|
||||||
|
# Run tests
|
||||||
|
- run:
|
||||||
|
name: Test incl. license verification
|
||||||
|
command: mvn verify license:check --batch-mode
|
||||||
|
|
||||||
|
# Record test results
|
||||||
|
- run: mkdir -p testresults/junit/
|
||||||
|
- run: find . -type f -regex ".*/target/surefire-reports/.*xml" -exec cp {} testresults/junit/ \;
|
||||||
|
|
||||||
|
- store_test_results:
|
||||||
|
path: testresults/junit/
|
||||||
|
|
||||||
|
- store_artifacts:
|
||||||
|
path: pom.xml
|
||||||
|
|
||||||
|
- save_cache:
|
||||||
|
paths:
|
||||||
|
- ~/.m2
|
||||||
|
key: circleci-hawkbit-{{ checksum "pom.xml" }}
|
||||||
|
|
||||||
|
notify:
|
||||||
|
webhooks:
|
||||||
|
# gitter hook
|
||||||
|
- url: https://webhooks.gitter.im/e/a20a6bc2bda5a8a77d39
|
||||||
37
circle.yml
37
circle.yml
@@ -1,37 +0,0 @@
|
|||||||
#
|
|
||||||
# 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:
|
|
||||||
- mvn verify license:check
|
|
||||||
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
|
|
||||||
Reference in New Issue
Block a user