Files
hawkbit/.circleci/config.yml

55 lines
1.3 KiB
YAML

#
# 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:8u181-jdk-stretch
environment:
_JAVA_OPTIONS: "-Xms512m -Xmx1024m"
- image: rabbitmq:3-management
environment:
RABBITMQ_DEFAULT_VHOST: "/"
steps:
- checkout
- restore_cache:
key: circleci-hawkbit-{{ checksum "pom.xml" }}
- run:
name: Install dependencies without testing
command: mvn install --batch-mode -DskipTests
- run:
name: Run tests incl. license check
command: './.circleci/run-qa.sh'
- run:
name: Record test results
command: mkdir -p testresults/jUnit && find . -type f -regex ".*/target/surefire-reports/.*xml" -exec cp {} testresults/jUnit/ \;
- store_test_results:
path: testresults
- store_artifacts:
path: pom.xml
destination: pom.xml
- save_cache:
paths:
- ~/.m2
key: circleci-hawkbit-{{ checksum "pom.xml" }}