forked from scalameta/scalafmt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
25 lines (21 loc) · 843 Bytes
/
.drone.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
build:
image: olafurpg/scalafix:0.0.1
commands:
- export JVM_OPTS="-Xms4000m -Xmx55g -XX:MaxPermSize=2000m -Xss4m -XX:ReservedCodeCacheSize=1024m -XX:+TieredCompilation -XX:+CMSClassUnloadingEnabled -XX:+UseConcMarkSweepGC"
# configuring ivy.home doesn't seem to work. Maybe related:
# https://github.com/sbt/sbt/issues/1894
# After 10+ experiments I've given up on trying to use sbt.ivy.yhome and
# copy the files myself instead, as recommended here:
# http://readme.drone.io/usage/caching/
- test -d /drone/.sbt && cp -a /drone/.sbt /root
- rm -rf /drone/.sbt
- test -d /drone/.ivy2 && cp -a /drone/.ivy2 /root
- rm -rf /drone/.ivy2
- ./bin/testAll.sh
- cp -a /root/.ivy2 /drone
- cp -a /root/.sbt /drone
cache:
mount:
- /drone/.sbt
- /drone/.ivy2
- /drone/cache