after_success:
  - |
    if [ -n "$TRAVIS_TAG" ]; then
        mkdir ~/.pgp
        echo $PGP_PUBLIC | base64 --decode > ~/.pgp/pubring
        echo $PGP_SECRET | base64 --decode > ~/.pgp/secring
        sbt ++$TRAVIS_SCALA_VERSION publishSigned native:publishSigned sonatypeRelease
    elif [ "$TRAVIS_BRANCH" == master ]; then
        mkdir ~/.pgp
        echo $PGP_PUBLIC | base64 --decode > ~/.pgp/pubring
        echo $PGP_SECRET | base64 --decode > ~/.pgp/secring
        sbt ++$TRAVIS_SCALA_VERSION publishSigned native:publishSigned
    fi
before_install:
  - sudo apt-get update -qq
  - sudo hostname "$(hostname | cut -c1-63)"
  - sed -e "s/^\\(127\\.0\\.0\\.1.*\\)/\\1 $(hostname | cut -c1-63)/" /etc/hosts | sudo tee /etc/hosts
deploy:
  api_key: $GITHUB_AUTH
  file: target/**.jar
  file_glob: true
  on:
    repo: lucidsoftware/lucid-aspell
    tags: true
  provider: releases
install:
  - sudo apt-get install gcc libaspell-dev libaspell15 aspell
jdk:
  - openjdk7
  - oraclejdk8

language: scala
scala:
  - 2.10.6
  - 2.11.7
script:
  - sbt ++$TRAVIS_SCALA_VERSION package native:package

after_success:
  - |
    if [ -n "$TRAVIS_TAG" ]; then
        mkdir ~/.pgp
        echo $PGP_PUBLIC | base64 --decode > ~/.pgp/pubring
        echo $PGP_SECRET | base64 --decode > ~/.pgp/secring
        sbt ++$TRAVIS_SCALA_VERSION publishSigned native:publishSigned sonatypeRelease
    elif [ "$TRAVIS_BRANCH" == master ]; then
        mkdir ~/.pgp
        echo $PGP_PUBLIC | base64 --decode > ~/.pgp/pubring
        echo $PGP_SECRET | base64 --decode > ~/.pgp/secring
        sbt ++$TRAVIS_SCALA_VERSION publishSigned native:publishSigned
    fi
before_install:
  - sudo apt-get update -qq
  - sudo hostname "$(hostname | cut -c1-63)"
  - sed -e "s/^\\(127\\.0\\.0\\.1.*\\)/\\1 $(hostname | cut -c1-63)/" /etc/hosts | sudo tee /etc/hosts
deploy:
  api_key: $GITHUB_AUTH
  file: target/**.jar
  file_glob: true
  on:
    repo: lucidsoftware/lucid-aspell
    tags: true
  provider: releases
install:
  - sudo apt-get install gcc libaspell-dev libaspell15 aspell
jdk:
  - openjdk8

language: scala
scala:
  - 2.10.6
  - 2.11.7
script:
  - sbt ++$TRAVIS_SCALA_VERSION package native:package

Change to openjdk instead of oraclejdk
Change to openjdk instead of oraclejdk
