language: java
jdk:
    - oraclejdk8
    - oraclejdk7
    - openjdk7
env:
    - PUSHY_SSL_PROVIDER=jdk
    - PUSHY_SSL_PROVIDER=native
matrix:
    exclude:
        - jdk: oraclejdk7
          env: PUSHY_SSL_PROVIDER=jdk
        - jdk: openjdk7
          env: PUSHY_SSL_PROVIDER=jdk

# Workaround for Travis CI issue 5227, which results in a buffer overflow
# caused by Java when running the build on OpenJDK.
# https://github.com/travis-ci/travis-ci/issues/5227
before_install:
    - cat /etc/hosts # optionally check the content *before*
    - sudo hostname "$(hostname | cut -c1-63)"
    - sed -e "s/^\\(127\\.0\\.0\\.1.*\\)/\\1 $(hostname | cut -c1-63)/" /etc/hosts | sudo tee /etc/hosts
    - cat /etc/hosts # optionally check the content *after*
language: java
jdk:
    - oraclejdk8
    - oraclejdk7
    - openjdk7
env:
    - PUSHY_SSL_PROVIDER=jdk
    - PUSHY_SSL_PROVIDER=native
matrix:
    exclude:
        - jdk: oraclejdk7
          env: PUSHY_SSL_PROVIDER=jdk
        - jdk: openjdk7
          env: PUSHY_SSL_PROVIDER=jdk

Revert "Drop the fancy hostname workaround for Travis (since they've updated their images lately)."
Revert "Drop the fancy hostname workaround for Travis (since they've updated their images lately)."

This reverts commit 43422130d7e27458d617cc13abae9ba2956ed821.
