-
Notifications
You must be signed in to change notification settings - Fork 176
Expand file tree
/
Copy pathconfig.yml
More file actions
52 lines (49 loc) · 1.39 KB
/
config.yml
File metadata and controls
52 lines (49 loc) · 1.39 KB
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
version: 2.1
executorType: machine
jobs:
build:
machine:
image: ubuntu-2004:202201-02
steps:
- checkout
- restore_cache:
key: kp-dependency-build-cache-{{ checksum "pom.xml" }}
- run:
name: Run build
command: |
mvn clean install -DskipTests -DCLOUD_STORE_GROUP_ID=$CLOUD_STORE_GROUP_ID -DCLOUD_STORE_ARTIFACT_ID=$CLOUD_STORE_ARTIFACT_ID -DCLOUD_STORE_VERSION=$CLOUD_STORE_VERSION
- save_cache:
paths:
- ~/.m2
key: kp-dependency-build-cache-{{ checksum "pom.xml" }}
unit-tests:
machine:
image: ubuntu-2004:202201-02
parallelism: 1
steps:
- checkout
- restore_cache:
key: kp-dependency-test-cache-{{ checksum "pom.xml" }}
- run:
name: Setup environment and run tests
command: bash vmsetup.sh
- run:
name: Save test results
command: |
mkdir -p ~/test-results/junit/
find . -type f -regex ".*/target/surefire-reports/.*xml" -exec cp {} ~/test-results/junit/ \;
when: always
- save_cache:
paths:
- ~/.m2
key: kp-dependency-test-cache-{{ checksum "pom.xml" }}
- store_test_results:
path: ~/test-results
workflows:
version: 2.1
build-then-test:
jobs:
- build
- unit-tests:
requires:
- build