language: generic
dist: trusty
addons:
  apt:
    packages:
      - openjdk-7-jdk
      - python3.4-dev
      - python3.4-venv
env:
  - ACTIVATOR_VERSION=1.3.12
before_script:
  - wget https://downloads.typesafe.com/typesafe-activator/${ACTIVATOR_VERSION}/typesafe-activator-${ACTIVATOR_VERSION}-minimal.zip
  - unzip -q typesafe-activator-${ACTIVATOR_VERSION}-minimal.zip
  - python3 -m venv --system-site-packages ./venv
  - . ./venv/bin/activate
  - python3 -m pip install --upgrade pip setuptools
  - pip install WeasyPrint
script:
  - yes "q" | activator-${ACTIVATOR_VERSION}-minimal/bin/activator test
notifications:
  email:
    on_success: change
    on_failure: always

language: generic
sudo: required
dist: trusty
addons:
  apt:
    packages:
      - openjdk-7-jdk
      - python3.4-dev
      - python3.4-venv
      - xz-utils
services:
  - docker
env:
  - DOCKER2ACI_VERSION=0.17.0 ACTIVATOR_VERSION=1.3.12
before_script:
  - wget https://downloads.typesafe.com/typesafe-activator/${ACTIVATOR_VERSION}/typesafe-activator-${ACTIVATOR_VERSION}-minimal.zip
  - unzip -q typesafe-activator-${ACTIVATOR_VERSION}-minimal.zip
  - python3 -m venv --system-site-packages ./venv
  - . ./venv/bin/activate
  - python3 -m pip install --upgrade pip setuptools
  - pip install WeasyPrint
script:
  - yes "q" | activator-${ACTIVATOR_VERSION}-minimal/bin/activator test
after_success:
  - curl -sL https://github.com/appc/docker2aci/releases/download/v${DOCKER2ACI_VERSION}/docker2aci-v${DOCKER2ACI_VERSION}.tar.gz | tar xvz --strip-components=1
  - activator-${ACTIVATOR_VERSION}-minimal/bin/activator dist
  - docker build -t aorra .
  - docker save aorra > nghttpx.docker
  - ./docker2aci aorra.docker && mv aorra-latest.aci aorra.linux.amd64.aci
  - xz aorra.docker
notifications:
  email:
    on_success: change
    on_failure: always

Build Docker file after successful test
Build Docker file after successful test
