machine:
  environment:
    SBT_OPTS: "-XX:+CMSClassUnloadingEnabled -XX:PermSize=256M -XX:MaxPermSize=512M -Xmx2G"
    SBT_GHPAGES_COMMIT_MESSAGE: 'Publishing Scaladoc [ci skip]'
  java:
    version: oraclejdk8

dependencies:
  pre:
    - wget -q https://dl.bintray.com/sbt/debian/sbt-1.0.4.deb
    - sudo dpkg -i sbt-1.0.4.deb
# see https://circleci.com/docs/1.0/language-scala/#using-a-custom-version-of-sbt
# Remove above three lines when CircleCI supports newer SBT versions
  post:
    - find ~/.ivy2/cache -name "ivydata-*.properties" -print -delete
    - find ~/.sbt        -name "*.lock"               -print -delete
  cache_directories:
    - "~/.ivy2/cache"
    - "~/.sbt"
    - "~/.m2"

test:
  override:
    - sbt clean coverage +test

deployment:
  master:
    branch: master
    owner: pathikrit
    commands:
      - sbt updateImpactSubmit coverageReport coverageAggregate codacyCoverage
      - bash <(curl -s https://codecov.io/bash)
      - git config --global user.email "pathikritbhowmick@msn.com"
      - git config --global user.name "circle-ci"
      - git config --global push.default simple
      - sbt ghpagesPushSite +publish

machine:
  environment:
    SBT_OPTS: "-XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -XX:MetaspaceSize=256M -XX:MaxMetaspaceSize=512M -Xmx2G"
    SBT_GHPAGES_COMMIT_MESSAGE: 'Publishing Scaladoc [ci skip]'
  java:
    version: oraclejdk8

dependencies:
  pre:
    - wget -q https://dl.bintray.com/sbt/debian/sbt-1.0.4.deb
    - sudo dpkg -i sbt-1.0.4.deb
# see https://circleci.com/docs/1.0/language-scala/#using-a-custom-version-of-sbt
# Remove above three lines when CircleCI supports newer SBT versions
  post:
    - find ~/.ivy2/cache -name "ivydata-*.properties" -print -delete
    - find ~/.sbt        -name "*.lock"               -print -delete
  cache_directories:
    - "~/.ivy2/cache"
    - "~/.sbt"
    - "~/.m2"

test:
  override:
    - sbt clean coverage +test

deployment:
  master:
    branch: master
    owner: pathikrit
    commands:
      - sbt updateImpactSubmit coverageReport coverageAggregate codacyCoverage
      - bash <(curl -s https://codecov.io/bash)
      - git config --global user.email "pathikritbhowmick@msn.com"
      - git config --global user.name "circle-ci"
      - git config --global push.default simple
      - sbt ghpagesPushSite +publish

Update SBT_OPTS with JDK 8 settings
Update SBT_OPTS with JDK 8 settings