forked from banana-rdf/banana-rdf
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
39 lines (39 loc) · 1.67 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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# 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:
# see https://github.com/travis-ci/travis-cookbooks/issues/35
- oraclejdk7
scala:
- 2.10.4
- 2.11.2
branches:
only:
- series/0.7.x
matrix:
include:
- script: sbt ++$TRAVIS_SCALA_VERSION experimental/test
jdk: oraclejdk7
scala: 2.11.2
- script: sbt ++$TRAVIS_SCALA_VERSION experimental/test
jdk: oraclejdk7
scala: 2.10.4
allow_failures:
- script: sbt ++$TRAVIS_SCALA_VERSION experimental/test
#script:
# - ./sbt test