services:
  - docker

script:
  - docker login -u "$DOCKER_USERNAME" -p "$DOCKER_USERPASS"
  - docker build --tag compdatasci/base base && docker push compdatasci/base
  - docker build --tag compdatasci/r-notebook r-notebook && docker push compdatasci/r-notebook
  - docker build --tag compdatasci/octave-notebook octave-notebook && docker push compdatasci/octave-notebook
  - docker build --tag compdatasci/scipy-notebook scipy-notebook && docker push compdatasci/scipy-notebook
  - docker images

services:
  - docker

script:
  - docker login -u "$DOCKER_USERNAME" -p "$DOCKER_USERPASS"
  - docker pull compdatasci/base || true
  - docker build --tag compdatasci/base base && docker push compdatasci/base
  - docker pull compdatasci/r-notebook || true
  - docker build --tag compdatasci/r-notebook r-notebook && docker push compdatasci/r-notebook
  - docker pull compdatasci/octave-notebook || true
  - docker build --tag compdatasci/octave-notebook octave-notebook && docker push compdatasci/octave-notebook
  - docker pull compdatasci/scipy-notebook || true
  - docker build --tag compdatasci/scipy-notebook scipy-notebook && docker push compdatasci/scipy-notebook
  - docker images

Use "docker pull" before compiling to speedup building.
Use "docker pull" before compiling to speedup building.
