# We need sudo to install pip system-wide
sudo: required

os:
  - linux
  - osx

before_install:
  # Workaround for upgrading gcc, see https://github.com/travis-ci/travis-ci/issues/8826
  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew cask uninstall oclint ; fi
  
  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update             ; fi
  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew upgrade python     ; fi
  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install python@2   ; fi
  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then pip install --upgrade virtualenv ; fi
  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install shellcheck ; fi

  - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo add-apt-repository -y ppa:fkrull/deadsnakes ; fi
  - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get update ; fi

install:
  - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install python3.5 python3.5-dev --force-yes -y ; fi

  - sudo -H pip2 install coveralls coverage

script: ./ci.sh

after_success:
  - coveralls

# We need sudo to install pip system-wide
sudo: required

os:
  - linux
  - osx

before_install:
  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update             ; fi
  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew upgrade python     ; fi
  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install python@2   ; fi
  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then pip install --upgrade virtualenv ; fi
  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install shellcheck ; fi

  - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo add-apt-repository -y ppa:fkrull/deadsnakes ; fi
  - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get update ; fi

install:
  - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install python3.5 python3.5-dev --force-yes -y ; fi

  - sudo -H pip2 install coveralls coverage

script: ./ci.sh

after_success:
  - coveralls

Remove no-longer-needed Travis bug workaround
Remove no-longer-needed Travis bug workaround

It now breaks the build.
