language: scala
sudo: false
scala:
  - 2.10.6
  - 2.11.7
jdk:
  - openjdk7
  - oraclejdk8
services:
  - memcache
script: "sbt clean coverage test"
after_success: "sbt coverageReport coveralls"
cache:
  directories:
  - $HOME/.sbt/0.13
  - $HOME/.sbt/boot/scala*
  - $HOME/.sbt/cache
  - $HOME/.sbt/launchers
  - $HOME/.ivy2
before_cache:
  - du -h -d 1 $HOME/.ivy2/
  - du -h -d 2 $HOME/.sbt/
  - find $HOME/.sbt -name "*.lock" -type f -delete
  - find $HOME/.ivy2/cache -name "ivydata-*.properties" -type f -delete


language: scala
sudo: required
dist: trusty
scala:
  - 2.10.6
  - 2.11.7
jdk:
  - oraclejdk7
  - oraclejdk8
services:
  - docker
before_install:
  - sudo service memcached stop
  - docker pull memcached
  - docker run -d -p 127.0.0.1:11211:11211 memcached memcached
script: "sbt clean coverage test"
after_success: "sbt coverageReport coveralls"
cache:
  directories:
  - $HOME/.sbt/0.13
  - $HOME/.sbt/boot/scala*
  - $HOME/.sbt/cache
  - $HOME/.sbt/launchers
  - $HOME/.ivy2
before_cache:
  - du -h -d 1 $HOME/.ivy2/
  - du -h -d 2 $HOME/.sbt/
  - find $HOME/.sbt -name "*.lock" -type f -delete
  - find $HOME/.ivy2/cache -name "ivydata-*.properties" -type f -delete

Switch to Trusty environment for Travis CI
Switch to Trusty environment for Travis CI

The default Travis build environment is based on Ubuntu 12.04 (Precise
Pangolin), which includes memcached 1.4.13.  This version has several
bugs, including one where the incorrect default value is set when
incrementing a non-existent key.

This change moves the Travis environment to Google Compute Engine,
currently in beta, in order to run memcached inside a Docker container
based on the latest official memcached image, currently 1.4.25 as of this
commit.

We also change from openjdk7 to oraclejdk7 due to
travis-ci/travis-ci#5227, since the suggested workaround is also
non-functional currently due to travis-ci/travis-ci#5669.
