2018-07-30 13:35:50 +02:00
|
|
|
#
|
2023-09-14 11:03:20 +03:00
|
|
|
# Copyright (c) 2018 Bosch Software Innovations GmbH and others
|
2018-07-30 13:35:50 +02:00
|
|
|
#
|
2023-09-14 11:03:20 +03:00
|
|
|
# This program and the accompanying materials are made
|
|
|
|
|
# available under the terms of the Eclipse Public License 2.0
|
|
|
|
|
# which is available at https://www.eclipse.org/legal/epl-2.0/
|
|
|
|
|
#
|
|
|
|
|
# SPDX-License-Identifier: EPL-2.0
|
2018-07-30 13:35:50 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
version: 2
|
|
|
|
|
jobs:
|
|
|
|
|
build:
|
|
|
|
|
|
|
|
|
|
working_directory: ~/hawkBit
|
|
|
|
|
|
|
|
|
|
docker:
|
2024-04-25 15:15:08 +03:00
|
|
|
- image: cimg/openjdk:17.0.11
|
2020-10-21 14:25:18 +02:00
|
|
|
auth:
|
|
|
|
|
username: $DOCKERHUB_USER
|
|
|
|
|
password: $DOCKERHUB_ACCESSTOKEN
|
2018-07-30 13:35:50 +02:00
|
|
|
environment:
|
|
|
|
|
_JAVA_OPTIONS: "-Xms512m -Xmx1024m"
|
|
|
|
|
|
|
|
|
|
- image: rabbitmq:3-management
|
2020-10-21 17:21:55 +02:00
|
|
|
auth:
|
|
|
|
|
username: $DOCKERHUB_USER
|
|
|
|
|
password: $DOCKERHUB_ACCESSTOKEN
|
2018-07-30 13:35:50 +02:00
|
|
|
environment:
|
|
|
|
|
RABBITMQ_DEFAULT_VHOST: "/"
|
|
|
|
|
|
|
|
|
|
steps:
|
|
|
|
|
|
|
|
|
|
- checkout
|
|
|
|
|
|
|
|
|
|
- restore_cache:
|
|
|
|
|
key: circleci-hawkbit-{{ checksum "pom.xml" }}
|
|
|
|
|
|
|
|
|
|
- run:
|
2018-10-16 17:00:00 +02:00
|
|
|
name: Install dependencies without testing
|
2018-07-30 13:35:50 +02:00
|
|
|
command: mvn install --batch-mode -DskipTests
|
|
|
|
|
|
|
|
|
|
- run:
|
2018-10-16 17:00:00 +02:00
|
|
|
name: Run tests incl. license check
|
|
|
|
|
command: './.circleci/run-qa.sh'
|
2018-07-30 13:35:50 +02:00
|
|
|
|
2018-10-16 19:05:47 +02:00
|
|
|
- run:
|
|
|
|
|
name: Record test results
|
|
|
|
|
command: mkdir -p testresults/jUnit && find . -type f -regex ".*/target/surefire-reports/.*xml" -exec cp {} testresults/jUnit/ \;
|
2018-07-30 13:35:50 +02:00
|
|
|
|
|
|
|
|
- store_test_results:
|
2018-10-16 19:05:47 +02:00
|
|
|
path: testresults
|
2018-07-30 13:35:50 +02:00
|
|
|
|
|
|
|
|
- store_artifacts:
|
|
|
|
|
path: pom.xml
|
2018-10-16 19:05:47 +02:00
|
|
|
destination: pom.xml
|
2018-07-30 13:35:50 +02:00
|
|
|
|
|
|
|
|
- save_cache:
|
|
|
|
|
paths:
|
|
|
|
|
- ~/.m2
|
|
|
|
|
key: circleci-hawkbit-{{ checksum "pom.xml" }}
|