Skip to content

Commit f7b454d

Browse files
authored
Merge pull request #156 from salesforce/feature/circleci
Migrate to circleci
2 parents c513c31 + fae845f commit f7b454d

File tree

2 files changed

+54
-18
lines changed

2 files changed

+54
-18
lines changed

.circleci/config.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
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

.travis.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)