File tree 1 file changed +57
-0
lines changed
1 file changed +57
-0
lines changed Original file line number Diff line number Diff line change
1
+ version : 2
2
+
3
+ defaults : &defaults
4
+ docker :
5
+ - image : circleci/openjdk:8-jdk
6
+
7
+ working_directory : ~/repo
8
+
9
+ environment :
10
+ # Customize the JVM maximum heap limit
11
+ JVM_OPTS : -Xmx3200m
12
+ TERM : dumb
13
+
14
+
15
+ jobs :
16
+ build :
17
+ << : *defaults
18
+ environment :
19
+ SPURWING_KEY : ${SPURWING_KEY}
20
+ SPURWING_PID : $SPURWING_PID}
21
+ steps :
22
+ - checkout
23
+ # Download and cache dependencies
24
+ - restore_cache :
25
+ keys :
26
+ - v1-dependencies-{{ checksum "build.gradle" }}
27
+ # fallback to using the latest cache if no exact match is found
28
+ - v1-dependencies-
29
+
30
+ - run : gradle dependencies
31
+
32
+ - save_cache :
33
+ paths :
34
+ - ~/.gradle
35
+ key : v1-dependencies-{{ checksum "build.gradle" }}
36
+
37
+ - persist_to_workspace :
38
+ root : ~/repo
39
+ paths : .
40
+
41
+ test :
42
+ << : *defaults
43
+ steps :
44
+ - checkout
45
+ - attach_workspace :
46
+ at : ~/repo
47
+ - run :
48
+ name : Run Tests
49
+ command : gradle run test
50
+ workflows :
51
+ version : 2
52
+ workflow :
53
+ jobs :
54
+ - build
55
+ - test :
56
+ requires :
57
+ - build
You can’t perform that action at this time.
0 commit comments