language: scala
env:
  - PLAY_VERSION=2.2.1
before_script:
  - wget http://downloads.typesafe.com/play/${PLAY_VERSION}/play-${PLAY_VERSION}.zip
  - unzip -q play-${PLAY_VERSION}.zip
  - sudo apt-get install python-virtualenv
  - virtualenv --system-site-packages ./venv
  - . ./venv/bin/activate
  - pip install --upgrade pip
  - pip -q install WeasyPrint
script:
  - yes "q" | play-${PLAY_VERSION}/play jacoco:cover coveralls
  - curl -v --form json_file=@target/coveralls.json https://coveralls.io/api/v1/jobs || true
notifications:
  email:
    recipients:
      - t.dettrick@uq.edu.au
      - a.gebers@uq.edu.au
    on_success: change
    on_failure: always

language: scala
sudo: false
addons:
  apt:
    packages:
      - python3
env:
  - PLAY_VERSION=2.2.1
before_script:
  - wget http://downloads.typesafe.com/play/${PLAY_VERSION}/play-${PLAY_VERSION}.zip
  - unzip -q play-${PLAY_VERSION}.zip
  - python3 -m venv --system-site-packages ./venv
  - . ./venv/bin/activate
  - python3 -m pip install --upgrade pip
  - pip -q install WeasyPrint
script:
  - yes "q" | play-${PLAY_VERSION}/play jacoco:cover coveralls
  - curl -v --form json_file=@target/coveralls.json https://coveralls.io/api/v1/jobs || true
notifications:
  email:
    recipients:
      - t.dettrick@uq.edu.au
      - a.gebers@uq.edu.au
    on_success: change
    on_failure: always

Use Python 3 on Travis CI to avoid SNI problem
Use Python 3 on Travis CI to avoid SNI problem
