sudo: false
#cache:
#  directories:
#    - $HOME/.m2
language: java
jdk:
  - oraclejdk8
services:
  - redis-server
before_install:
  - git config user.name "$GIT_NAME"
  - git config user.email "$GIT_EMAIL"
  - git config credential.helper "store --file=.git/credentials"
  - echo "https://$GH_TOKEN:@github.com" > .git/credentials
install:
  - ./mvnw --fail-at-end --update-snapshots clean package -Dmaven.test.redirectTestOutputToFile=true
env:
  global:
    - GIT_NAME="Dave Syer"
    - GIT_EMAIL=dsyer@pivotal.io
    - CI_DEPLOY_USERNAME=buildmaster
