-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.yml
72 lines (65 loc) · 2.01 KB
/
config.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
version: 2.1
orbs:
maven: circleci/[email protected]
circleci-maven-release-orb: sonatype-nexus-community/[email protected]
release-args: &release-args
mvn-release-perform-command: mvn --batch-mode release:perform -s .circleci/.maven.xml -PbuildKar
ssh-fingerprints: "73:40:5d:60:85:c4:02:7e:79:10:30:6e:36:8d:4b:02"
context: rso-base
filters:
branches:
only: master
jobs:
build_and_test:
docker:
- image: 'cimg/openjdk:8.0'
steps:
- checkout
- maven/with_cache:
verify_dependencies: false
steps:
- run:
name: Run Maven Build
command: |
mvn clean --batch-mode verify -PbuildKar -Dit
- run:
name: Save test results
command: |
mkdir -p ~/project/artifacts/junit/
find . -type f -regex ".*/target/surefire-reports/.*xml" -exec cp {} ~/project/artifacts/junit/ \;
find . -type f -regex ".*/target/failsafe-reports/.*xml" -exec cp {} ~/project/artifacts/junit/ \;
mkdir -p ~/project/artifacts/it-reports/
find . -type f -regex ".*/target/it-reports/.*" -exec cp {} ~/project/artifacts/it-reports/ \;
when: always
- store_test_results:
path: ~/project/artifacts/junit
- store_artifacts:
path: ~/project/artifacts/it-reports
workflows:
build-branch:
jobs:
- build_and_test:
filters:
branches:
ignore: master
run-release:
jobs:
- approve-release:
type: approval
filters:
branches:
only: master
- circleci-maven-release-orb/run-maven-release:
requires:
- approve-release
<<: *release-args
release-from-master:
jobs:
- build_and_test:
filters:
branches:
only: master
- circleci-maven-release-orb/run-maven-release:
requires:
- build_and_test
<<: *release-args