# Travis CI configuration file for running tests
language: python

branches:
  only:
    - master

python:
  - "2.7"

services:
  - docker
  
addons:
  apt:
    packages:
      - nodejs
      - python-demjson

before_install:
  - sudo apt-get update
  - sudo apt-get install docker-engine

install:
  - "pip install --allow-all-external -r requirements.txt"
  - "pip install --allow-all-external demjson"

env:
  - MAKE_TARGET=test.syntax
  - MAKE_TARGET=test.edx_east_roles
  - MAKE_TARGET=docker.test.shard SHARD=0 SHARDS=3
  - MAKE_TARGET=docker.test.shard SHARD=1 SHARDS=3
  - MAKE_TARGET=docker.test.shard SHARD=2 SHARDS=3

script:
  - docker --version
  - make --version
  - travis_wait 40 make --keep-going $MAKE_TARGET SHARD=$SHARD SHARDS=$SHARDS

# Travis CI configuration file for running tests
language: python

branches:
  only:
    - master

python:
  - "2.7"

services:
  - docker
  
addons:
  apt:
    packages:
      - nodejs
      - python-demjson

before_install:
  - sudo apt-get -y update
  - sudo apt-get -y install -o Dpkg::Options::="--force-confold" docker-engine

install:
  - "pip install --allow-all-external -r requirements.txt"
  - "pip install --allow-all-external demjson"

env:
  - MAKE_TARGET=test.syntax
  - MAKE_TARGET=test.edx_east_roles
  - MAKE_TARGET=docker.test.shard SHARD=0 SHARDS=3
  - MAKE_TARGET=docker.test.shard SHARD=1 SHARDS=3
  - MAKE_TARGET=docker.test.shard SHARD=2 SHARDS=3

script:
  - docker --version
  - make --version
  - travis_wait 40 make --keep-going $MAKE_TARGET SHARD=$SHARD SHARDS=$SHARDS

Update to not receive input on apt-get tasks.
Update to not receive input on apt-get tasks.

Without the '-y' the tests stop to ask for input.

Keep the old config. Since it was edited by travis we probably
want that on instead of the default one.
