sudo: false

before_install:
 - export PATH=${PATH}:./vendor/bundle

install:
  - rvm use 2.2.3 --install --fuzzy
  - gem update --system
  - gem install sass
  - gem install jekyll -v 3.2.1

cache:
  directories:
    - $HOME/.ivy2/cache
    - $HOME/.sbt
    - $HOME/.coursier

before_cache:
  # Cleanup the cached directories to avoid unnecessary cache updates
  - find $HOME/.ivy2/cache -name "ivydata-*.properties" -print -delete
  - find $HOME/.sbt        -name "*.lock"               -print -delete

language: scala

scala:
  - 2.12.2

env:
  - PROJECT=projectJVM
  - PROJECT=surfaceJS
  - PROJECT=airframeJS

jdk:
  - oraclejdk8

script:
  - if [ "$TRAVIS_SCALA_VERSION" == "2.12.2" -a "$PROJECT" == "*JVM" ]; then
      ./sbt ++$TRAVIS_SCALA_VERSION "; coverage; ${PROJECT}/test; coverageReport";
      ./sbt coverageAggregate && bash <(curl -s https://codecov.io/bash);
      if [ "$TRAVIS_BRANCH" == "master" ]; then
         ./sbt docs/publishMicrosite;
      fi
    else
      ./sbt ++$TRAVIS_SCALA_VERSION ${PROJECT}/test;
    fi

matrix:
  include:
  - scala: 2.11.11
    env: PROJECT=projectJVM
    jdk: oraclejdk8

sudo: false

before_install:
 - export PATH=${PATH}:./vendor/bundle

install:
  - rvm use 2.2.3 --install --fuzzy
  - gem update --system
  - gem install sass
  - gem install jekyll -v 3.2.1

cache:
  directories:
    - $HOME/.ivy2/cache
    - $HOME/.sbt
    - $HOME/.coursier

before_cache:
  # Cleanup the cached directories to avoid unnecessary cache updates
  - find $HOME/.ivy2/cache -name "ivydata-*.properties" -print -delete
  - find $HOME/.sbt        -name "*.lock"               -print -delete

language: scala

scala:
  - 2.12.3

env:
  - PROJECT=projectJVM
  - PROJECT=surfaceJS
  - PROJECT=airframeJS

jdk:
  - oraclejdk8

script:
  - if [ "$TRAVIS_SCALA_VERSION" == "2.12.3" -a "$PROJECT" == "*JVM" ]; then
      ./sbt ++$TRAVIS_SCALA_VERSION "; coverage; ${PROJECT}/test; coverageReport";
      ./sbt coverageAggregate && bash <(curl -s https://codecov.io/bash);
      if [ "$TRAVIS_BRANCH" == "master" ]; then
         ./sbt docs/publishMicrosite;
      fi
    else
      ./sbt ++$TRAVIS_SCALA_VERSION ${PROJECT}/test;
    fi

matrix:
  include:
  - scala: 2.11.11
    env: PROJECT=projectJVM
    jdk: oraclejdk8

Use Scala 2.12.3 in Travis build
Use Scala 2.12.3 in Travis build
