# Travis performance customizations based on
# http://www.scala-sbt.org/0.13/docs/Travis-CI-with-sbt.html
# Use faster container-based infrastructure
sudo: false

language: scala

# These directories are cached to S3 at the end of the build
cache:
  directories:
    - $HOME/.ivy2/cache
    - $HOME/.sbt/boot/

scala:
  - 2.10.4
  - 2.11.7
env:
  - SPARK_VER=1.5.2
  - SPARK_VER=1.4.1
  - SPARK_VER=1.6.0
  # - SPARK_VER=1.3.1 (failing at the moment)
script:
  - export SKIP_WHEN_TRAVIS=yes; SBT_OPTS="-XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -Xmx4G -XX:MaxPermSize=4G" sbt -Dspark.version=$SPARK_VER -Dscala.version=$TRAVIS_SCALA_VERSION "set offline := true" test

  # Tricks to avoid unnecessary cache updates
  - find $HOME/.sbt -name "*.lock" | xargs rm -f
  - find $HOME/.ivy2 -name "ivydata-*.properties" | xargs rm -f

# Travis performance customizations based on
# http://www.scala-sbt.org/0.13/docs/Travis-CI-with-sbt.html
# Use faster container-based infrastructure
sudo: false

language: scala

# These directories are cached to S3 at the end of the build
#cache:
#  directories:
#    - $HOME/.ivy2/cache
#    - $HOME/.sbt/boot/

scala:
  - 2.10.4
  - 2.11.7
env:
  - SPARK_VER=1.5.2
  - SPARK_VER=1.4.1
  - SPARK_VER=1.6.0
  # - SPARK_VER=1.3.1 (failing at the moment)
script:
  - export SKIP_WHEN_TRAVIS=yes; SBT_OPTS="-XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -Xmx4G -XX:MaxPermSize=4G" sbt -Dspark.version=$SPARK_VER -Dscala.version=$TRAVIS_SCALA_VERSION "set offline := true" test

#  # Tricks to avoid unnecessary cache updates
#  - find $HOME/.sbt -name "*.lock" | xargs rm -f
#  - find $HOME/.ivy2 -name "ivydata-*.properties" | xargs rm -f

Disable caching in Travis builds
Disable caching in Travis builds
