addons:
  apt:
    packages:
      - xvfb

cache:
  pip: true
  yarn: true
  directories:
    - node_modules
    - $HOME/.yarn-cache

language:
  python

python:
  - "2.7"
  - "3.5"
  - "3.6"

env:
  - DJANGO=18
  - DJANGO=110

before_install:
  # Repo for newer Node.js versions
  - curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
  # Repo for Yarn
  - sudo apt-key adv --keyserver pgp.mit.edu --recv D101F7899D41F3C3
  - echo "deb http://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
  - sudo apt-get update -qq
  - sudo apt-get install -y -qq yarn
  - sudo yarn global add bower grunt-cli npm

  - export DISPLAY=:99.0
  - Xvfb $DISPLAY &
  - docker-compose build

services: 
  - docker

install:
  - npm install -g bower
  - export TOXENV=py${TRAVIS_PYTHON_VERSION//./}-django${DJANGO}

script:
  - docker-compose run --rm test tox -e ${TOXENV}

addons:
  apt:
    packages:
      - xvfb

#cache:
#  pip: true
#  yarn: true
#  directories:
#    - node_modules
#    - $HOME/.yarn-cache

language:
  python

python:
  - "2.7"
  - "3.5"
  - "3.6"

env:
  - DJANGO=18
  - DJANGO=110

before_install:
  # Repo for newer Node.js versions
  - curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
  # Repo for Yarn
  - sudo apt-key adv --keyserver pgp.mit.edu --recv D101F7899D41F3C3
  - echo "deb http://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
  - sudo apt-get update -qq
  - sudo apt-get install -y -qq yarn
  - sudo yarn global add bower grunt-cli npm

  - export DISPLAY=:99.0
  - Xvfb $DISPLAY &
  - docker-compose build

services: 
  - docker

install:
  - npm install -g bower
  - export TOXENV=py${TRAVIS_PYTHON_VERSION//./}-django${DJANGO}

script:
  - docker-compose run --rm test tox -e ${TOXENV}

Remove TravisCI cache, for now
Remove TravisCI cache, for now
