sudo: required

language: generic

services:
  - docker

script:
  - docker build -t lab41/base-notebook 01_base_notebook
  - docker build -t lab41/logging-notebook 02_ganymede
  - docker build -t lab41/tensorflow-notebook 03_deep_learning
  - docker build -t lab41/spark-notebook 03_spark
    # Check that we can open python and import libraries
  - docker run -it lab41/tensorflow-notebook python -c "import tensorflow; import keras"
 #- docker run -it lab41/spark-notebook python -c "import pyspark"

after_success:
  - echo "TRAVIS_BRANCH\: $TRAVIS_BRANCH";
    echo "TRAVIS_REPO_SLUG\: $TRAVIS_REPO_SLUG"
  - if [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_REPO_SLUG" == "Lab41/nbserver" ]; then
      docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD" &&
      docker push lab41/base-notebook &&
      docker push lab41/logging-notebook &&
      docker push lab41/tensorflow-notebook &&
      docker push lab41/spark-notebook;
    fi

sudo: required

language: generic

services:
  - docker

script:
  - docker build -t lab41/base-notebook 01_base_notebook
  - docker build -t lab41/logging-notebook 02_ganymede
  - docker build -t lab41/tensorflow-notebook 03_deep_learning
  - docker build -t lab41/spark-notebook 03_spark
  # Check that we can open python and import libraries
  - docker run -it lab41/tensorflow-notebook python -c "import tensorflow; import keras; import theano"
 #- docker run -it lab41/spark-notebook python -c "import pyspark"

after_success:
  - echo "TRAVIS_BRANCH\: $TRAVIS_BRANCH";
    echo "TRAVIS_REPO_SLUG\: $TRAVIS_REPO_SLUG"
  - if [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_REPO_SLUG" == "Lab41/nbserver" ]; then
      docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD" &&
      docker push lab41/base-notebook &&
      docker push lab41/logging-notebook &&
      docker push lab41/tensorflow-notebook &&
      docker push lab41/spark-notebook;
    fi

Add Theano to the test file
Add Theano to the test file
