generated from cs130-w21/template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.yml
43 lines (42 loc) · 1.04 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
# Orb 'circleci/maven@0.0.12' resolved to 'circleci/maven@0.0.12'
version: 2
jobs:
maven/test:
docker:
- image: circleci/openjdk:8-jdk-node
steps:
- checkout
- run: sudo npm install -g gulp-cli
- run:
name: Generate Cache Checksum
command: find . -name 'pom.xml' | sort | xargs cat > /tmp/maven_cache_seed
- restore_cache:
key: maven-{{ checksum "/tmp/maven_cache_seed" }}
- run:
name: Install Dependencies
command: mvn dependency:go-offline --settings 'pom.xml'
- run:
name: Run Tests
command: mvn verify --settings 'pom.xml'
- save_cache:
paths:
- ~/.m2
key: maven-{{ checksum "/tmp/maven_cache_seed" }}
- store_test_results:
path: target/surefire-reports
workflows:
maven_test:
jobs:
- maven/test
version: 2
# Original config.yml file:
# version: 2.1
#
# orbs:
# maven: circleci/maven@0.0.12
#
# workflows:
# maven_test:
# jobs:
# - maven/test # checkout, build, test, and upload test results
#