forked from benhutchison/prickle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
23 lines (23 loc) · 1.24 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# doc: http://about.travis-ci.org/docs/user/languages/scala/
#
# Java flags reasoning, also see https://weblogs.java.net/blog/kcpeppe/archive/2013/12/11/case-study-jvm-hotspot-flags
#
# -XX:+CMSClassUnloadingEnabled - effectively adds GC to Perm space.
# -XX:+UseConcMarkSweepGC - must be enabled for CMSClassUnloadingEnabled to work
# -XX:MaxPermSize=300M - In Java 8, this setting is non-mutable and set at 300M - let's be prepared. Also, for Java 7,
# fixing the actual size is not recommended - see above article
#
# SBT Concurrency:
# By default, SBT runs tasks concurrently and sets the limit of parallel tasks by looking at the number of cores available.
# Note however, that each tasks uses more memory as well, so machines with more cores will need to allocate more memory to SBT.
# On Travis, there is currently 2 cores and so the default SBT java settings are adequate. The rule seems to be to set
# the flag -XmxN, where N = No. cores / 4 - eg with 8 cores(4 real, with hyper threading 8) - -Xmx2048m
#
language: scala
env:
export SBT_OPTS="-XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=300M -XX:ReservedCodeCacheSize=128m -Xmx2G"
jdk:
- oraclejdk8
scala:
- 2.10.4
- 2.11.5