language: groovy

jdk:
  - openjdk7
  - oraclejdk8

env:
  global:
  - GRADLE_OPTS="-Xmx1024m"

install:
  - JAVA_HOME=$(jdk_switcher home openjdk8) ./gradlew classes testClasses

script:
  - ./gradlew check uploadArchives --full-stacktrace
  - cd samples/example && ./gradlew clean webResourceCompile --full-stacktrace && cd ../../

after_success:
  - ./gradlew coveralls --full-stacktrace

language: groovy
dist: precise

jdk:
  - openjdk7
  - oraclejdk8

env:
  global:
  - GRADLE_OPTS="-Xmx1024m"

script:
  - ./gradlew check uploadArchives --full-stacktrace
  - cd samples/example && ./gradlew clean webResourceCompile --full-stacktrace && cd ../../

after_success:
  - ./gradlew coveralls --full-stacktrace

Fix JDK7 error on Travis CI builds
Fix JDK7 error on Travis CI builds
