This repository has been archived by the owner on Nov 2, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
circle.yml
50 lines (41 loc) · 1.47 KB
/
circle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
version: 2
jobs:
build:
docker:
# specify the version you desire here
- image: circleci/openjdk:8-jdk
working_directory: ~/repo
environment:
# Customize the JVM maximum heap limit
MAVEN_OPTS: -Xmx3200m
steps:
- checkout
# Download and cache dependencies
- restore_cache:
keys:
- v2-dependencies-{{ checksum "pom.xml" }}
# fallback to using the latest cache if no exact match is found
- v2-dependencies-
# build and run tests (non-integration tests)
- run: mvn clean
- run: mvn dependency:resolve -DskipITs package
- save_cache:
when: always
paths:
- ~/.m2
key: v2-dependencies-{{ checksum "pom.xml" }}
- run:
name: pull test reports and artifacts together
when: always
command: |
mkdir -p test-reports
find . -type f -regex ".*/surefire-reports/.*xml" -exec cp {} test-reports/ \;
mkdir -p build-artifacts
find . -type f -regex ".*/runtime/target/.*jar" -exec cp {} build-artifacts/ \;
find . -type f -regex ".*/standalone_runtime/target/.*jar" -exec cp {} build-artifacts/ \;
find . -type f -regex ".*/master/target/.*jar" -exec cp {} build-artifacts/ \;
- store_test_results:
path: test-reports
- store_artifacts:
path: build-artifacts
destination: artifacts