File tree Expand file tree Collapse file tree 2 files changed +54
-18
lines changed Expand file tree Collapse file tree 2 files changed +54
-18
lines changed Original file line number Diff line number Diff line change 1+ # Java Maven CircleCI 2.0 configuration file
2+ #
3+ # Check https://circleci.com/docs/2.0/language-java/ for more details
4+ #
5+ version : 2
6+
7+ shared : &shared
8+ working_directory : ~/repo
9+
10+ environment :
11+ # Customize the JVM maximum heap limit
12+ MAVEN_OPTS : -Xmx3200m
13+
14+ steps :
15+ - run :
16+ name : Install Golang
17+ command : |
18+ sudo curl -L https://golang.org/dl/go1.16.3.linux-amd64.tar.gz -o /usr/local/go1.16.3.linux-amd64.tar.gz
19+ sudo tar -C /usr/local -xzf /usr/local/go1.16.3.linux-amd64.tar.gz
20+ bash -c 'PATH=$PATH:/usr/local/go/bin go version'
21+
22+ - checkout
23+
24+ # Download and cache dependencies
25+ - restore_cache :
26+ keys :
27+ - v1-dependencies-{{ checksum "pom.xml" }}
28+ # fallback to using the latest cache if no exact match is found
29+ - v1-dependencies-
30+
31+ - run : bash -c 'PATH=$PATH:/usr/local/go/bin mvn install'
32+
33+ - save_cache :
34+ paths :
35+ - ~/.m2
36+ key : v1-dependencies-{{ checksum "pom.xml" }}
37+
38+ jobs :
39+ java-8 :
40+ docker :
41+ - image : circleci/openjdk:8-jdk
42+ << : *shared
43+
44+ java-11 :
45+ docker :
46+ - image : circleci/openjdk:11-jdk
47+ << : *shared
48+
49+ workflows :
50+ version : 2
51+ java-8-and-11 :
52+ jobs :
53+ - java-8
54+ - java-11
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments