---
language: java
sudo: false

os:
  - linux

branches:
  only:
    - master

notifications:
  email: false
  slack: line-armeria:vLZppggTRH02hwY2eOACIzCG

cache:
  directories:
    - $HOME/.gradle
    - $HOME/.jdk

env:
  global:
    - JAVA_HOME=$HOME/.jdk/default
    - PATH=$JAVA_HOME/bin:$PATH
    - GRADLE_OPTS=-Xmx768m

before_install:
  - .travis/install-jdk.sh
  - ./gradlew --version

install:
  - true

script:
  - ./gradlew --no-daemon --stacktrace -Pcoverage checkstyle test build

before_cache:
  - find $HOME/.gradle/caches -name '*.lock' -delete
  - rm -fr $HOME/.gradle/caches/[0-9]*

after_success:
  - bash <(curl -s https://codecov.io/bash)

---
language: java
sudo: false

os:
  - linux

branches:
  only:
    - master
    - '0.46'

notifications:
  email: false
  slack: line-armeria:vLZppggTRH02hwY2eOACIzCG

cache:
  directories:
    - $HOME/.gradle
    - $HOME/.jdk

env:
  global:
    - JAVA_HOME=$HOME/.jdk/default
    - PATH=$JAVA_HOME/bin:$PATH
    - GRADLE_OPTS=-Xmx768m

before_install:
  - .travis/install-jdk.sh
  - ./gradlew --version

install:
  - true

script:
  - ./gradlew --no-daemon --stacktrace -Pcoverage checkstyle test build

before_cache:
  - find $HOME/.gradle/caches -name '*.lock' -delete
  - rm -fr $HOME/.gradle/caches/[0-9]*

after_success:
  - bash <(curl -s https://codecov.io/bash)

Add branch '0.46' to Travis CI builds
Add branch '0.46' to Travis CI builds
