-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.yml
37 lines (32 loc) · 1.14 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
version: 2
jobs:
build:
docker:
- image: cimg/openjdk:20.0.1
working_directory: ~/repo
environment:
# Customize the JVM maximum heap limit
JVM_OPTS: -Xmx3200m
TERM: dumb
steps:
- checkout
- restore_cache:
keys:
- v1-dependencies-{{ .Branch }}
- run: git checkout . && git clean -df
- run: cat /dev/null | sbt cachedCiTest
- run: |
rm -fv ~/.ivy2/.sbt.ivy.lock
find ~/.ivy2/cache -name "ivydata-*.properties" -print -delete || echo "empty ivy cache"
find ~/.sbt -name "*.lock" -print -delete
rm -rf ./.git
rm -rf ./project/target #clean doesn't clean meta-build
- save_cache:
paths:
- ~/.ivy2/cache
- ~/.sbt
- ~/.cache/coursier
- ./
key: v1-dependencies-{{ .Branch }}-{{ epoch }}
# The resource_class feature allows configuring CPU and RAM resources for each job. Different resource classes are available for different executors. https://circleci.com/docs/2.0/configuration-reference/#resourceclass
resource_class: large